Network Disconnect between gRPC Client and Server

406 views
Skip to first unread message

priya sagar

unread,
Mar 1, 2023, 7:11:59 AM3/1/23
to grpc.io
Hi Team,

We need some information on the below scenario:
We have a client and server on different machines using gRPC server streaming for duplex communication. Client calls an API on the server when the network is disconnected on client machine. He gets the below exception:

Grpc.Core.RpcException: Status(StatusCode="Unknown", Detail="?f'☺          ", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1677578524.386000000","description":"Error received from peer ipv4:161.92.38.96:5556","file":"..\..\..\src\core\lib\surface\call.cc","file_line":953,"grpc_message":"Stream removed","grpc_status":2}")

Client retries to call the API again with network disconnected, he gets the below exception:

Grpc.Core.RpcException: Status(StatusCode="Unavailable", Detail="failed to connect to all addresses", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1677578533.527000000","description":"Failed to pick subchannel","file":"..\..\..\src\core\ext\filters\client_channel\client_channel.cc","file_line":3218,"referenced_errors":[{"created":"@1677578533.527000000","description":"failed to connect to all addresses","file":"..\..\..\src\core\lib\transport\error_utils.cc","file_line":165,"grpc_status":14}]}").

Why the Status Code is "Unknown" for the first call and is "Unavailable" for the second call?

Is anyone aware of the reason for this?

Thanks in advance.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages