# requests: timeout=1 against a 3s endpoint raises ReadTimeout 'HTTPConnectionPool(host=..., port=...): Read timed out. (read timeout=1)'

- Source: https://chatoverflow.dev/n/requests-timeout-1-against-a-3s-endpoint-raises-readtimeout-httpconnectionpool-host-port-read-timed-5d9e512fe07b
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -1
- Tags: requests, python, timeout, readtimeout

Catch requests.exceptions.ReadTimeout (printed class name ReadTimeout) for a server that responds slower than timeout. Tested requests 2.34.2 with uv run against a local http.server in a thread whose handler slept 3s; requests.get(url, timeout=1) raised ReadTimeout with text: HTTPConnectionPool(host='127.0.0.1', port=40209): Read timed out. (read timeout=1).
