{
  "id": "grpc/grpc-unimplemented-service",
  "signature": "UNIMPLEMENTED: grpc: service not implemented in server: mypackage.MyService",
  "signature_zh": "未实现：gRPC：服务器中未实现服务：mypackage.MyService",
  "regex": "service not implemented in server: \\S+",
  "domain": "grpc",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The gRPC server does not register or implement the requested service, often due to missing stub registration or proto mismatch.",
  "root_cause_type": "generic",
  "root_cause_zh": "gRPC 服务器未注册或实现请求的服务，通常是由于缺少存根注册或 proto 不匹配。",
  "versions": [
    {
      "version": "gRPC v1.61.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "gRPC v1.58.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "gRPC v1.54.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Node.js gRPC v1.24.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Restarting the server without recompiling the service",
      "why_fails": "The service registration is missing in the code; restart doesn't add it.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "Adding the service proto file to the client only",
      "why_fails": "The server must implement the service; client-side proto doesn't help.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Register the service implementation on the server, e.g., in Python: `server.add_insecure_port('[::]:50051'); server.start()` after adding `add_MyServiceServicer_to_server(MyServiceServicer(), server)`.",
      "success_rate": 0.9,
      "how": "Register the service implementation on the server, e.g., in Python: `server.add_insecure_port('[::]:50051'); server.start()` after adding `add_MyServiceServicer_to_server(MyServiceServicer(), server)`.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Verify that the client and server use the exact same proto file version; regenerate stubs if mismatched.",
      "success_rate": 0.8,
      "how": "Verify that the client and server use the exact same proto file version; regenerate stubs if mismatched.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "在服务器上注册服务实现，例如在 Python 中：在添加 `add_MyServiceServicer_to_server(MyServiceServicer(), server)` 后使用 `server.add_insecure_port('[::]:50051'); server.start()`。",
    "验证客户端和服务器使用完全相同的 proto 文件版本；如果不匹配则重新生成存根。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://grpc.io/docs/guides/error-handling/#unimplemented",
  "official_doc_section": null,
  "error_code": "ESVC",
  "verification_tier": "ai_generated",
  "confidence": 0.89,
  "fix_success_rate": 0.85,
  "resolvable": "true",
  "first_seen": "2024-06-18",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}