Alp
Alp

Reputation: 3105

grpc Greeter Service sample fails randomly

I came across a problem with grpc sample code while I was testing waters with it. I noticed that client succeeds, let's say 75% of time but fails at a rate of 25% with following error:

grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
        status = StatusCode.UNIMPLEMENTED
        details = "Method not found!"
        debug_error_string = "UNKNOWN:Error received from peer  {grpc_message:"Method not found!", grpc_status:12, created_time:"2024-06-12T10:16:43.243776013+03:00"}"

Please see the picture attached. Sample grpc client runs

I'd expect it to work 100% of the time. What am I missing here ?

Please note that, I haven't made any changes to the sample code. I am using them as is and I got them via:

git clone -b v1.64.0 --depth 1 --shallow-submodules https://github.com/grpc/grpc

EDIT My environment for this example:

Host OS : Linux (Manjaro)

Network : Client and server are both running on the same machine, just different terminal windows.

Firewall Rules: See the picture please

python --version                                                                                                                   
Python 3.12.3
pip freeze
grpcio==1.64.1
grpcio-tools==1.64.1
protobuf==5.27.1
setuptools==70.0.0

Upvotes: 0

Views: 151

Answers (0)

Related Questions