{
  "id": "go/grpc-client-max-recv-message-size",
  "signature": "rpc error: code = ResourceExhausted desc = grpc: received message larger than max (5242880 vs. 4194304)",
  "signature_zh": "rpc错误：代码=资源耗尽 描述=grpc：接收到的消息大于最大值（5242880 vs. 4194304）",
  "regex": "rpc\\ error:\\ code\\ =\\ ResourceExhausted\\ desc\\ =\\ grpc:\\ received\\ message\\ larger\\ than\\ max\\ \\(5242880\\ vs\\.\\ 4194304\\)",
  "domain": "go",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The gRPC server sent a response larger than the client's max receive message size (default 4 MB).",
  "root_cause_type": "generic",
  "root_cause_zh": "gRPC服务器发送的响应大于客户端的最大接收消息大小（默认4 MB）。",
  "versions": [
    {
      "version": "1.3",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Reduce the data size on the server side.",
      "why_fails": "The data is necessary; shrinking may lose information.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "Set the max size on server only.",
      "why_fails": "The client enforces its own limit independently.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Increase client max receive message size in dial options.",
      "success_rate": 0.95,
      "how": "conn, err := grpc.Dial(address, grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(10*1024*1024)))",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use streaming RPC to handle large payloads in chunks.",
      "success_rate": 0.85,
      "how": "service LargeData { rpc StreamData(stream Request) returns (stream Response); }",
      "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.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-06-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}