{
  "id": "go/grpc-protobuf-type-mismatch",
  "signature": "panic: proto: field message.id has invalid type: expected int32, got string",
  "signature_zh": "恐慌：proto：字段 message.id 类型无效：期望 int32，得到 string",
  "regex": "panic:\\ proto:\\ field\\ message\\.id\\ has\\ invalid\\ type:\\ expected\\ int32,\\ got\\ string",
  "domain": "go",
  "category": "type_error",
  "subcategory": null,
  "root_cause": "The protobuf message definition has a type mismatch between the generated Go struct and the actual wire data, often due to version skew.",
  "root_cause_type": "generic",
  "root_cause_zh": "protobuf 消息定义在生成的 Go 结构和实际线路数据之间存在类型不匹配，通常是由于版本偏差。",
  "versions": [
    {
      "version": "1.30.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Regenerate the Go code from the correct .proto file to ensure type consistency.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Use protojson to convert between JSON and protobuf, which handles type conversions gracefully.",
      "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.84,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-03-22",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}