# requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='api.example.com', port=443): Max retries exceeded with url: /data (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at ...>, 'Connection to api.example.com timed out.'))

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

## Root Cause

External API call from Django view takes too long to respond or network is unreachable.

## Version Compatibility

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

## Workarounds

1. **** (85% success)
   ```
   Use a shorter timeout and handle gracefully: requests.get(url, timeout=5) and catch exceptions.
   ```
2. **** (80% success)
   ```
   Implement retries with exponential backoff using urllib3 Retry.
   ```

## Dead Ends

- **** — Doesn't solve underlying network issue; delays user response. (50% fail)
- **** — Can hang the server and exhaust resources. (70% fail)
