{
  "id": "go/grpc-invalid-header",
  "signature": "rpc error: code = Internal desc = grpc: error while marshaling: string field contains invalid UTF-8",
  "signature_zh": "rpc 错误：代码 = Internal 描述 = grpc：编组时出错：字符串字段包含无效的 UTF-8",
  "regex": "rpc\\ error:\\ code\\ =\\ Internal\\ desc\\ =\\ grpc:\\ error\\ while\\ marshaling:\\ string\\ field\\ contains\\ invalid\\ UTF\\-8",
  "domain": "go",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "A string field in the proto message contains invalid UTF-8 bytes, which violates proto3 string requirements.",
  "root_cause_type": "generic",
  "root_cause_zh": "proto 消息中的字符串字段包含无效的 UTF-8 字节，违反了 proto3 字符串要求。",
  "versions": [
    {
      "version": "1.11",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Changing field type requires proto regeneration and may break compatibility.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The marshaling will fail and the RPC will not complete.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "req.Name = strings.ToValidUTF8(req.Name, \"\")",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.5,
      "how": "marshaler := protojson.MarshalOptions{EmitUnpopulated: true}; data, _ := marshaler.Marshal(msg)",
      "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-11-11",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}