Network Disconnect between gRPC Client and Server

Skip to first unread message

priya sagar

Mar 1, 2023, 7:11:59 AM3/1/23
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:","file":"..\..\..\src\core\lib\surface\","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\","file_line":3218,"referenced_errors":[{"created":"@1677578533.527000000","description":"failed to connect to all addresses","file":"..\..\..\src\core\lib\transport\","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
Message has been deleted
0 new messages