# aiohttp.client_exceptions.ClientPayloadError: Response payload is not completed

- **ID:** `python/aiohttp-clientpayloaderror`
- **Domain:** python
- **Category:** network_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The server closed the connection mid-body, or the response body was read twice, or streaming was interrupted.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.8 | active | — | — |
| 3.9 | active | — | — |
| 3.10 | active | — | — |
| 3.11 | active | — | — |
| 3.12 | active | — | — |

## Workarounds

1. **** (92% success)
   ```
   Read the body once and cache:

async with session.get(url) as resp:
    body = await resp.read()
    data = json.loads(body)
   ```
2. **** (88% success)
   ```
   Retry the request on ClientPayloadError with backoff.
   ```
3. **** (85% success)
   ```
   Use resp.content.iter_chunked() for large payloads to detect partial reads early.
   ```

## Dead Ends

- **** — The body is consumed once; second call raises the same error. (90% fail)
- **** — The connection is already closed; timeout doesn't matter. (85% fail)
- **** — Server-side framing, not client-controlled. (90% fail)
