{
  "id": "go/grpc-out-of-range-enum-value",
  "signature": "rpc error: code = InvalidArgument desc = invalid enum value: 99 for field status",
  "signature_zh": "rpc 错误：代码 = InvalidArgument 描述 = 字段 status 的枚举值无效：99",
  "regex": "rpc\\ error:\\ code\\ =\\ InvalidArgument\\ desc\\ =\\ invalid\\ enum\\ value:\\ 99\\ for\\ field\\ status",
  "domain": "go",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "The client sends an integer that doesn't map to any defined enum value in the proto.",
  "root_cause_type": "generic",
  "root_cause_zh": "客户端发送的整数未映射到 proto 中定义的任何枚举值。",
  "versions": [
    {
      "version": "1.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Go will allow the conversion but protobuf deserialization will fail.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The server will reject the message.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "if status < pb.Status_STATUS_UNKNOWN || status > pb.Status_STATUS_DONE { return error }",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "how": "// Use protoreflect to check if value is defined.",
      "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-03-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}