go network_error ai_generated true

rpc error: code = Unavailable desc = grpc: the server has been stopped

ID: go/grpc-server-shutdown

Also available as: JSON · Markdown · 中文
80%Fix Rate
86%Confidence
0Evidence
2024-05-12First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
1.60.0 active

Root Cause

The client attempted to communicate with a gRPC server that has been gracefully stopped or is in the process of shutting down.

generic

中文

客户端尝试与已优雅停止或正在关闭的 gRPC 服务器通信。

Workarounds

  1. 85% success
    Implement client-side health checks to detect server availability and reconnect when it comes back.
  2. 90% success
    Use a connection pool that can re-establish connections after server restart.

Dead Ends

Common approaches that don't work:

  1. 80% fail

  2. 60% fail