{
  "id": "go/grpc-invalid-argument-enum",
  "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 sent an integer value for a protobuf enum field that is not defined in the enum. This often happens when the client and server have different versions of the .proto definition.",
  "root_cause_type": "generic",
  "root_cause_zh": "客户端为 protobuf 枚举字段发送了一个未在枚举中定义的整数值。这通常是因为客户端和服务器使用了不同版本的 .proto 定义。",
  "versions": [
    {
      "version": "1.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The value 99 is not a valid enum constant, so casting will not help.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Protobuf enums are strict by default; you would need to use a wrapper type.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Run protoc with the updated status enum definition.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "how": "if status < 0 || status > 3 { return fmt.Errorf(\"invalid status\") }",
      "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.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-04-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}