{
  "id": "python/flask-max-content-length-413",
  "signature": "werkzeug.exceptions.RequestEntityTooLarge: 413 Request Entity Too Large: The data value transmitted exceeds the capacity limit.",
  "signature_zh": "werkzeug.exceptions.RequestEntityTooLarge: 413 请求实体过大：传输的数据值超过了容量限制。",
  "regex": "werkzeug\\.exceptions\\.RequestEntityTooLarge:\\ 413\\ Request\\ Entity\\ Too\\ Large:\\ The\\ data\\ value\\ transmitted\\ exceeds\\ the\\ capacity\\ limit\\.",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "MAX_CONTENT_LENGTH set lower than the upload size, or reverse proxy (nginx client_max_body_size) rejects first.",
  "root_cause_type": "generic",
  "root_cause_zh": "MAX_CONTENT_LENGTH 设置低于上传大小，或反向代理（nginx client_max_body_size）先拒绝。",
  "versions": [
    {
      "version": "2.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Removes DoS protection; still capped by proxy.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Body was never read; handler has no data.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.92,
      "how": "app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024  # 16 MB",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "In nginx: client_max_body_size 16m;  # align with app config",
      "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.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-03-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}