{
  "id": "python/starlette-multiple-json-body",
  "signature": "starlette.exceptions.HTTPException: 400 Bad Request: There was an error parsing the body",
  "signature_zh": "Starlette HTTP 异常：400 错误请求，解析请求体时出错",
  "regex": "starlette\\.exceptions\\.HTTPException:\\ 400\\ Bad\\ Request:\\ There\\ was\\ an\\ error\\ parsing\\ the\\ body",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "请求体不是有效的 JSON 或格式错误。",
  "root_cause_type": "generic",
  "root_cause_zh": "请求体不是有效的 JSON 或格式错误。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "可能重复解析，且处理复杂。",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "导致后续逻辑错误。",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "try:\\n    data = await request.json()\\nexcept Exception:\\n    return JSONResponse({'error': 'Invalid JSON'}, status_code=400)",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "from pydantic import BaseModel\\nclass Item(BaseModel):\\n    name: str\\n    price: float\\nitem = Item(**data)",
      "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.82,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-04-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}