go config_error ai_generated true

rpc error: code = Unimplemented desc = unknown method YourMethod for service pb.YourService

ID: go/grpc-unknown-method

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

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
1.x active — — —

Root Cause

The client called a method that is not defined in the service, likely due to a mismatch between client and server proto definitions.

generic

中文

客户端调用了服务中未定义的方法,可能由于客户端和服务器 proto 定义不匹配。

Workarounds

  1. 95% success
    protoc --go_out=. --go-grpc_out=. your.proto
    // Then redeploy both client and server.
  2. 90% success
    // Check the .proto file for correct spelling and casing.
    // service YourService { rpc YourMethod (Request) returns (Response); }

Dead Ends

Common approaches that don't work:

  1. 95% fail

    The server still doesn't implement the method, so the call will fail with the same error.

  2. 90% fail

    The service name must match exactly; using a different name will result in a different error.