{
  "id": "grpc/grpc-failed-to-parse-response",
  "signature": "INTERNAL: grpc: failed to parse response from server",
  "signature_zh": "INTERNAL: grpc: 解析服务器响应失败",
  "regex": "INTERNAL: grpc: failed to parse response from server",
  "domain": "grpc",
  "category": "encoding_error",
  "subcategory": null,
  "root_cause": "The server returned a malformed or corrupted protobuf message that the client cannot parse.",
  "root_cause_type": "generic",
  "root_cause_zh": "服务器返回了格式错误或损坏的 protobuf 消息，客户端无法解析。",
  "versions": [
    {
      "version": "gRPC v1.45.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "gRPC v1.52.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "gRPC v1.63.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The malformed response is generated by the server; client restart doesn't fix server-side serialization issues.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The issue is often due to incompatible protobuf versions between client and server; both must be aligned.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "If the server consistently sends malformed data, ignoring the error will cause repeated failures.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Ensure client and server use the same protobuf version and the same .proto file. Recompile both sides. Example: protoc --python_out=. myproto.proto on both client and server.",
      "success_rate": 0.85,
      "how": "Ensure client and server use the same protobuf version and the same .proto file. Recompile both sides. Example: protoc --python_out=. myproto.proto on both client and server.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Enable gRPC debug logging to inspect the raw response bytes. Set environment variable GRPC_VERBOSITY=debug and GRPC_TRACE=all to see the payload.",
      "success_rate": 0.7,
      "how": "Enable gRPC debug logging to inspect the raw response bytes. Set environment variable GRPC_VERBOSITY=debug and GRPC_TRACE=all to see the payload.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Validate the server's response payload using a protobuf validator or schema registry to catch mismatches early.",
      "success_rate": 0.75,
      "how": "Validate the server's response payload using a protobuf validator or schema registry to catch mismatches early.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Ensure client and server use the same protobuf version and the same .proto file. Recompile both sides. Example: protoc --python_out=. myproto.proto on both client and server.",
    "Enable gRPC debug logging to inspect the raw response bytes. Set environment variable GRPC_VERBOSITY=debug and GRPC_TRACE=all to see the payload.",
    "Validate the server's response payload using a protobuf validator or schema registry to catch mismatches early."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://protobuf.dev/programming-guides/serialization/",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.83,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-01-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}