{
  "id": "go/grpc-unimplemented-unknown-method",
  "signature": "rpc error: code = Unimplemented desc = unknown service pb.OrderService",
  "signature_zh": "rpc 错误：code = Unimplemented desc = 未知服务 pb.OrderService",
  "regex": "rpc\\ error:\\ code\\ =\\ Unimplemented\\ desc\\ =\\ unknown\\ service\\ pb\\.OrderService",
  "domain": "go",
  "category": "module_error",
  "subcategory": null,
  "root_cause": "The client is calling a fully-qualified service name that the server does not have registered. Usually caused by mismatched proto package/name between client and server, a stale generated stub, or registering the service under a different package path.",
  "root_cause_type": "generic",
  "root_cause_zh": "客户端调用的完全限定服务名未在服务器上注册。通常由客户端与服务器之间 proto 包名/名称不匹配、生成的桩代码过期，或以不同的包路径注册服务导致。",
  "versions": [
    {
      "version": "1.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The server will never suddenly gain the method; retrying an unimplemented RPC always returns Unimplemented again.",
      "fail_rate": 0.97,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The service name mismatch is independent of the network endpoint; a different port with the same stale stub fails identically.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.88,
      "how": "Confirm the registered service name on the server matches the client stub by inspecting the descriptor:\n\nsd := pb.File_order_proto.Services().ByName(\"OrderService\")\nlog.Println(\"service full name:\", sd.FullName())\n// ensure pb.RegisterOrderServiceServer(srv, impl) is called",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Regenerate stubs from the canonical .proto and share the exact module version between client and server:\n\n// go.mod on both sides must reference the same generated module version\n// buf generate / protoc --go_out=. --go-grpc_out=. order.proto",
      "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.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-06-03",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}