{
  "id": "go/grpc-unimplemented-method-not-found",
  "signature": "rpc error: code = Unimplemented desc = method /helloworld.Greeter/SayHello not implemented",
  "signature_zh": "rpc错误：代码=未实现 描述=方法 /helloworld.Greeter/SayHello 未实现",
  "regex": "rpc\\ error:\\ code\\ =\\ Unimplemented\\ desc\\ =\\ method\\ /helloworld\\.Greeter/SayHello\\ not\\ implemented",
  "domain": "go",
  "category": "type_error",
  "subcategory": null,
  "root_cause": "The server does not have a handler registered for the requested RPC method, often due to a mismatch between protobuf definitions and server implementation.",
  "root_cause_type": "generic",
  "root_cause_zh": "服务器没有为请求的RPC方法注册处理程序，通常是由于protobuf定义与服务器实现不匹配。",
  "versions": [
    {
      "version": "1.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Restart the server without updating the protobuf definition.",
      "why_fails": "The server code is missing the method implementation; restarting does not add it.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    },
    {
      "action": "Call a different method with similar name hoping it works.",
      "why_fails": "The client is designed to call a specific method; using another may cause data inconsistency.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Ensure the server registers the exact method from the protobuf service definition.",
      "success_rate": 0.95,
      "how": "type server struct {\n    pb.UnimplementedGreeterServer\n}\nfunc (s *server) SayHello(ctx context.Context, req *pb.HelloRequest) (*pb.HelloReply, error) {\n    return &pb.HelloReply{Message: \"Hello \" + req.Name}, nil\n}\n// Then register: pb.RegisterGreeterServer(grpcServer, &server{})",
      "condition": "",
      "sources": []
    },
    {
      "action": "Regenerate protobuf code and rebuild both client and server.",
      "success_rate": 0.9,
      "how": "protoc --go_out=. --go-grpc_out=. helloworld.proto\ngo build ./...",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-02-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}