失败并错误消息更改为“2 UNKNOWN:”grpc-node

时间:2018-01-19 13:42:15

标签: node.js grpc

 Expected value to equal:
   "Zone doesn't exist"
 Received:
   "2 UNKNOWN: Zone doesn't exist"

我的测试突然失败了。在所有内容之前附加2 UNKNOWN:

1 个答案:

答案 0 :(得分:0)

使用已更新为1.8.4的^1.7.2时出现向后兼容性问题。

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
  }

messagedetails

相关问题