# asyncio.exceptions.TimeoutError: Request timed out after 5 seconds

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

## Root Cause

Aiohttp request exceeds the configured timeout, often due to slow network or server.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.7 | active | — | — |
| 3.8 | active | — | — |
| 3.9 | active | — | — |

## Workarounds

1. **** (90% success)
   ```
   timeout = aiohttp.ClientTimeout(total=10); async with session.get(url, timeout=timeout) as resp:
   ```
2. **** (85% success)
   ```
   await asyncio.wait_for(session.get(url), timeout=10)
   ```

## Dead Ends

- **** — Masks the problem and may hang indefinitely; not scalable. (50% fail)
- **** — Doesn't affect the request timeout; only delays execution. (90% fail)
