【发布时间】:2020-04-17 13:32:40
【问题描述】:
在 NestJS 中,我有一个有时会断开连接的 GRPC 客户端。如果发生断开连接,NestJS 将不再运行任何代码并强制我重新启动它。
如何处理 GRPC 客户端断开连接?有事件监听器吗?
我想要这些错误事件:
Error: 14 UNAVAILABLE: failed to connect to all addressesError: 2 UNKNOWN: Stream removed
【问题讨论】:
-
gRPC 客户端断开连接时,您是否看到任何特定的错误消息或其他输出?
-
嘿@murgatroid99,其中两个错误事件是:-
Error: 14 UNAVAILABLE: failed to connect to all addresses-Error: 2 UNKNOWN: Stream removed
标签: nestjs