{
  "id": "python/django-request-body-too-large",
  "signature": "django.core.exceptions.RequestDataTooBig: Request body exceeded settings.FILE_UPLOAD_MAX_MEMORY_SIZE.",
  "signature_zh": "请求数据过大错误：请求体超过 settings.FILE_UPLOAD_MAX_MEMORY_SIZE。",
  "regex": "django\\.core\\.exceptions\\.RequestDataTooBig:\\ Request\\ body\\ exceeded\\ settings\\.FILE_UPLOAD_MAX_MEMORY_SIZE\\.",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "Uploaded file exceeds the in-memory upload limit.",
  "root_cause_type": "generic",
  "root_cause_zh": "上传文件超过内存中的上传限制。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Increasing only DATA_UPLOAD_MAX_MEMORY_SIZE doesn't affect file upload limit.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Setting FILE_UPLOAD_MAX_MEMORY_SIZE=0 disables limit but can cause memory issues.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Set FILE_UPLOAD_MAX_MEMORY_SIZE = 10485760 (10MB) in settings.py.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Use FILE_UPLOAD_HANDLERS to stream large files to disk: ['django.core.files.uploadhandler.TemporaryFileUploadHandler']",
      "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": "2026-04-19",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}