{
  "id": "go/grpc-code-unimplemented-proto-drift",
  "signature": "rpc error: code = Unimplemented desc = unexpected HTTP status code received from server: 404 (Not Found); transport: received unexpected content-type \"text/plain\"",
  "signature_zh": "rpc error: code = Unimplemented desc = 从服务端收到意外的 HTTP 状态码：404（未找到）；传输：收到意外的 content-type \"text/plain\"",
  "regex": "rpc\\ error:\\ code\\ =\\ Unimplemented\\ desc\\ =\\ unexpected\\ HTTP\\ status\\ code\\ received\\ from\\ server:\\ 404\\ \\(Not\\ Found\\);\\ transport:\\ received\\ unexpected\\ content\\-type\\ \"text/plain\"",
  "domain": "go",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The client reached an HTTP server that is not a gRPC server (e.g., a plain HTTP reverse proxy, a misconfigured ingress, or an Envoy route not configured for gRPC). The server returned a text/plain 404 instead of gRPC frames.",
  "root_cause_type": "generic",
  "root_cause_zh": "客户端到达了一个非 gRPC 的 HTTP 服务端（例如普通 HTTP 反向代理、配置错误的 Ingress，或未配置 gRPC 的 Envoy 路由）。服务端返回了 text/plain 的 404，而非 gRPC 帧。",
  "versions": [
    {
      "version": "1.0+",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The routing is misconfigured; retries always hit the same HTTP endpoint",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The problem is HTTP/gRPC protocol mismatch, not TLS",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "// Kubernetes ingress-nginx:\n// annotations:\n//   nginx.ingress.kubernetes.io/backend-protocol: \"GRPC\"\n//   nginx.ingress.kubernetes.io/ssl-redirect: \"true\"",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.92,
      "how": "// Use the gRPC service port (often 50051) rather than 8080/9090\nconn, _ := grpc.Dial(\"svc:50051\", grpc.WithTransportCredentials(insecure.NewCredentials()))",
      "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": "2025-05-22",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}