{
  "id": "nginx/client-body-buffer-size-exceeded-with-413",
  "signature": "413 Request Entity Too Large: client intended to send too large body: 2097152 bytes exceeds client_max_body_size",
  "signature_zh": "413请求实体过大：客户端试图发送过大的请求体：2097152字节超过了client_max_body_size",
  "regex": "413 Request Entity Too Large.*client intended to send too large body.*exceeds client_max_body_size",
  "domain": "nginx",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The HTTP request body size exceeds the limit set by the client_max_body_size directive in nginx configuration.",
  "root_cause_type": "generic",
  "root_cause_zh": "",
  "versions": [
    {
      "version": "nginx 1.24.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "nginx 1.25.3",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "nginx 1.26.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Increase client_body_buffer_size only",
      "why_fails": "The error is about client_max_body_size, not client_body_buffer_size. Buffer size is separate from the maximum allowed body size.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Set client_max_body_size in a location block without specifying the server block",
      "why_fails": "If the location block is inside a server block that has a smaller limit, the server block limit may still apply depending on inheritance. Must set at http, server, or location level correctly.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "Increase system file descriptor limits",
      "why_fails": "This is a request size limit, not a file descriptor issue.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Increase client_max_body_size in the http, server, or location block. Example:\n  http {\n      client_max_body_size 10m;\n  }",
      "success_rate": 0.95,
      "how": "Increase client_max_body_size in the http, server, or location block. Example:\n  http {\n      client_max_body_size 10m;\n  }",
      "condition": "",
      "sources": []
    },
    {
      "action": "If using a reverse proxy, also ensure the upstream server (e.g., PHP-FPM, Node.js) has matching body size limits. For PHP-FPM, edit php.ini:\n  upload_max_filesize = 10M\n  post_max_size = 10M",
      "success_rate": 0.85,
      "how": "If using a reverse proxy, also ensure the upstream server (e.g., PHP-FPM, Node.js) has matching body size limits. For PHP-FPM, edit php.ini:\n  upload_max_filesize = 10M\n  post_max_size = 10M",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Increase client_max_body_size in the http, server, or location block. Example:\n  http {\n      client_max_body_size 10m;\n  }",
    "If using a reverse proxy, also ensure the upstream server (e.g., PHP-FPM, Node.js) has matching body size limits. For PHP-FPM, edit php.ini:\n  upload_max_filesize = 10M\n  post_max_size = 10M"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size",
  "official_doc_section": null,
  "error_code": "413",
  "verification_tier": "ai_generated",
  "confidence": 0.9,
  "fix_success_rate": 0.95,
  "resolvable": "true",
  "first_seen": "2024-01-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}