{
  "id": "go/grpc-internal-error-proto-mismatch",
  "signature": "rpc error: code = Internal desc = grpc: error while marshaling: proto: field tags don't match",
  "signature_zh": "rpc错误：代码=内部 描述=grpc：编组时出错：proto：字段标签不匹配",
  "regex": "rpc\\ error:\\ code\\ =\\ Internal\\ desc\\ =\\ grpc:\\ error\\ while\\ marshaling:\\ proto: field\\ tags\\ don't\\ match",
  "domain": "go",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "The protobuf definition used by client and server are out of sync (e.g., different field numbers or types), causing marshaling/unmarshaling failures.",
  "root_cause_type": "generic",
  "root_cause_zh": "客户端和服务器使用的protobuf定义不同步（例如不同的字段编号或类型），导致编组/解组失败。",
  "versions": [
    {
      "version": "1.22",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.23",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Clearing the client cache and retrying.",
      "why_fails": "The proto definitions are still mismatched; cache is irrelevant.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "Manually editing the generated .pb.go files.",
      "why_fails": "Files are auto-generated; manual edits break regeneration.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Regenerate protobuf stubs from the same .proto file for both client and server.",
      "success_rate": 0.95,
      "how": "protoc --go_out=. --go-grpc_out=. *.proto\n# ensure same .proto version is used everywhere",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use buf tool to enforce proto compatibility checks.",
      "success_rate": 0.9,
      "how": "buf breaking --against '.git#branch=main'",
      "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.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-07-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}