# fastapi.exceptions.RequestValidationError: body required

- **ID:** `python/fastapi-request-body-empty`
- **Domain:** python
- **Category:** data_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

请求未提供 body，但端点声明了必需的身体参数。

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (90% success)
   ```
   使用 `Body(None)` 或 `Optional[Model] = None` 使请求体可选。
   ```
2. **** (85% success)
   ```
   确保客户端发送有效的 JSON 请求体。
   ```

## Dead Ends

- **** — 尝试使用 `Body(...)` 但未设置默认值，导致请求体必须存在。 (70% fail)
- **** — 尝试在客户端发送空 JSON，但 FastAPI 仍视为缺失。 (50% fail)
