# RuntimeError: Unable to read request body, please use the stream parameter.

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

## Root Cause

尝试直接访问 request.body()，但请求体已经被消费。

## Version Compatibility

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

## Workarounds

1. **** (85% success)
   ```
   async def body_middleware(request, call_next):
    body = await request.body()
    request._body = body
    response = await call_next(request)
    return response
   ```

## Dead Ends

- **** — 请求体只能读取一次，第二次会抛出异常 (90% fail)
- **** — stream 需要正确管理，否则会导致内存泄漏 (60% fail)
