# aiohttp.client_exceptions.ClientResponseError: Response not consumed

- **ID:** `python/aiohttp-client-response-not-consumed`
- **Domain:** python
- **Category:** data_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The response body was not fully read or released before the session is closed, causing a leak.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.9 | active | — | — |
| 3.10 | active | — | — |

## Workarounds

1. **Always read the response body using async with** (95% success)
   ```
   async with session.get(url) as resp:
    data = await resp.text()
   ```
2. **Explicitly consume the response with resp.read()** (90% success)
   ```
   resp = await session.get(url)
await resp.read()  # or resp.release() after reading
   ```

## Dead Ends

- **Calling resp.release() but not reading the body** — release() does not consume the body; it only releases the connection. The response remains unconsumed. (50% fail)
- **Using resp.text() with a timeout that is too short** — If the timeout expires, the body may be partially read, leaving the response unconsumed. (40% fail)
