# RuntimeError: The request body has already been consumed.

- **ID:** `python/starlette-request-body-already-consumed`
- **Domain:** python
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

在 Starlette 中，多次读取请求体（如先调用 await request.json() 再调用 await request.body()）导致流已关闭。

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   body = await request.body()
data = json.loads(body)
   ```
2. **** (90% success)
   ```
   data = await request.json()
# 如果需要再次使用，保存在变量中
   ```

## Dead Ends

- **** — 流已被消费，再次读取会抛出相同错误。 (90% fail)
- **** — 复制对象不会复制内部流状态，仍然无法读取。 (80% fail)
