【发布时间】:2018-01-19 13:42:14
【问题描述】:
Expected value to equal:
"Zone doesn't exist"
Received:
"2 UNKNOWN: Zone doesn't exist"
我的测试突然失败了。在所有内容之前附加2 UNKNOWN:。
【问题讨论】:
Expected value to equal:
"Zone doesn't exist"
Received:
"2 UNKNOWN: Zone doesn't exist"
我的测试突然失败了。在所有内容之前附加2 UNKNOWN:。
【问题讨论】:
使用 ^1.7.2 时的向后兼容性问题,已更新至 1.8.4。
grpc-node 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。
【讨论】: