{
  "id": "go/grpc-message-too-large",
  "signature": "rpc error: code = ResourceExhausted desc = grpc: received message larger than max (5242880 vs. 4194304)",
  "signature_zh": "rpc 错误：代码 = ResourceExhausted 描述 = grpc：接收消息大于最大值（5242880 vs. 4194304）",
  "regex": "rpc\\ error:\\ code\\ =\\ ResourceExhausted\\ desc\\ =\\ grpc:\\ received\\ message\\ larger\\ than\\ max\\ \\(5242880\\ vs\\.\\ 4194304\\)",
  "domain": "go",
  "category": "resource_error",
  "subcategory": null,
  "root_cause": "Client or server default max message size (4MB) is exceeded by the payload.",
  "root_cause_type": "generic",
  "root_cause_zh": "客户端或服务器默认最大消息大小（4MB）被有效载荷超过。",
  "versions": [
    {
      "version": "1.2",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Memory is not the bottleneck; the gRPC framework has hard-coded limits.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Compression not enabled on both sides, and gRPC may not auto-decompress.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "opts := []grpc.DialOption{grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(10*1024*1024))}; conn, _ := grpc.Dial(\"addr\", opts...)",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "how": "Implement a bidirectional stream to send data in chunks.",
      "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.9,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-02-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}