{
  "id": "go/grpc-resource-exhausted-receive-buffer",
  "signature": "rpc error: code = ResourceExhausted desc = grpc: received message larger than max (5242889 vs. 4194304)",
  "signature_zh": "rpc 错误：代码 = ResourceExhausted 描述 = grpc：接收到的消息大于最大值（5242889 对比 4194304）",
  "regex": "rpc\\ error:\\ code\\ =\\ ResourceExhausted\\ desc\\ =\\ grpc:\\ received\\ message\\ larger\\ than\\ max\\ \\(5242889\\ vs\\.\\ 4194304\\)",
  "domain": "go",
  "category": "resource_error",
  "subcategory": null,
  "root_cause": "The gRPC message size exceeds the default maximum of 4 MB (4194304 bytes). The server or client has not adjusted the max receive message size.",
  "root_cause_type": "generic",
  "root_cause_zh": "gRPC 消息大小超过默认最大值 4 MB（4194304 字节）。服务器或客户端未调整最大接收消息大小。",
  "versions": [
    {
      "version": "1.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Compression may not always be possible or sufficient; the underlying data may still exceed limits after compression.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The message size will not change, so the error will recur.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(1024*1024*10)) on client; grpc.MaxRecvMsgSize(1024*1024*10) in server options.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "how": "Implement a custom streaming or pagination mechanism.",
      "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-03-22",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}