Expected value to equal:
"Zone doesn't exist"
Received:
"2 UNKNOWN: Zone doesn't exist"
我的测试突然失败了。在所有内容之前附加2 UNKNOWN:
。
使用 ^1.7.2
时出现向后兼容性问题,已更新到 1.8.4。
grpc 节点 1.8.4 在状态错误消息中添加了错误代码名称。https://github.com/grpc/grpc-node/pull/126
这会导致以下错误。
取代
try {
await sayHello()
} catch (error) {
message = error.message
}
自
try {
await sayHello()
} catch (error) {
message = error.details
}
从message
到details
.