# RuntimeError: Stream consumed

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

## Root Cause

Middleware read the request body with await request.body() or request.stream(), then the route tried to read it again; the ASGI receive stream is one-shot.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 0.30+ | active | — | — |

## Workarounds

1. **** (85% success)
   ```
   async def dispatch(self, request, call_next):
    body = await request.body()
    async def receive():
        return {'type':'http.request','body':body}
    request._receive = receive
    return await call_next(request)
   ```
2. **** (90% success)
   ```
   raw = await request.body()
data = json.loads(raw)
   ```

## Dead Ends

- **** — Second call returns empty bytes and downstream parsing fails. (85% fail)
- **** — Race conditions across concurrent requests corrupt data. (80% fail)
