{
  "id": "grpc/client-side-streaming-too-large",
  "signature": "RESOURCE_EXHAUSTED: grpc: received message larger than max (8388608 vs. 4194304)",
  "signature_zh": "资源耗尽：gRPC 接收的消息大于最大值（8388608 vs. 4194304）",
  "regex": "RESOURCE_EXHAUSTED: grpc: received message larger than max \\(\\d+ vs\\. \\d+\\)",
  "domain": "grpc",
  "category": "resource_error",
  "subcategory": null,
  "root_cause": "The client sent a message that exceeds the server's configured maximum message size.",
  "root_cause_type": "generic",
  "root_cause_zh": "客户端发送的消息超过了服务器配置的最大消息大小。",
  "versions": [
    {
      "version": "gRPC Python 1.48.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "gRPC C++ 1.50.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The server still enforces its own limit, so the error persists.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Negative values are ignored by gRPC; the default limit applies.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The same size violation will occur again without configuration change.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Set the max message size on both client and server. On the server, use `grpc.max_receive_message_length` option. Example: `server = grpc.server(futures.ThreadPoolExecutor(), options=[('grpc.max_receive_message_length', 16 * 1024 * 1024)])`",
      "success_rate": 0.85,
      "how": "Set the max message size on both client and server. On the server, use `grpc.max_receive_message_length` option. Example: `server = grpc.server(futures.ThreadPoolExecutor(), options=[('grpc.max_receive_message_length', 16 * 1024 * 1024)])`",
      "condition": "",
      "sources": []
    },
    {
      "action": "Compress the payload using gRPC's built-in compression. Enable with `grpc.Compression.Gzip` on channel or call.",
      "success_rate": 0.75,
      "how": "Compress the payload using gRPC's built-in compression. Enable with `grpc.Compression.Gzip` on channel or call.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Set the max message size on both client and server. On the server, use `grpc.max_receive_message_length` option. Example: `server = grpc.server(futures.ThreadPoolExecutor(), options=[('grpc.max_receive_message_length', 16 * 1024 * 1024)])`",
    "Compress the payload using gRPC's built-in compression. Enable with `grpc.Compression.Gzip` on channel or call."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://grpc.io/docs/guides/performance/#configuring-max-message-size",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.85,
  "resolvable": "true",
  "first_seen": "2023-06-15",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}