I followed the wizard, so why did I get an error when executing?

26 views
Skip to first unread message

尹彪

unread,
Oct 29, 2025, 11:39:52 AM (5 days ago) Oct 29
to grpc.io
(helloworld) a1@yinbiaodeMacBook-Pro helloworld % python ./greeter_client.py
Will try to greet world ...
Traceback (most recent call last):
  File "/Users/a1/Documents/source/grpc/examples/python/helloworld/./greeter_client.py", line 38, in <module>
    run()
    ~~~^^
  File "/Users/a1/Documents/source/grpc/examples/python/helloworld/./greeter_client.py", line 32, in run
    response = stub.SayHello(helloworld_pb2.HelloRequest(name="you"))
  File "/Users/a1/Documents/source/grpc/examples/python/helloworld/.venv/lib/python3.13/site-packages/grpc/_channel.py", line 1166, in __call__
    return _end_unary_response_blocking(state, call, False, None)
  File "/Users/a1/Documents/source/grpc/examples/python/helloworld/.venv/lib/python3.13/site-packages/grpc/_channel.py", line 996, in _end_unary_response_blocking
    raise _InactiveRpcError(state)  # pytype: disable=not-instantiable
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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_status:12, grpc_message:"Method not found!"}"


I didn’t modify any files, and I’ve checked that the pb2 files do contain this method. I’ve tried both Python 3.10 and 3.13.

尹彪

unread,
Oct 29, 2025, 10:48:25 PM (4 days ago) Oct 29
to grpc.io

I’ve found the issue — my Mac already had something running on port 50051, but when I started the server, it didn’t report any error, and the client also didn’t show any connection error.

Reply all
Reply to author
Forward
0 new messages