# httpx.Timeout(connect=1.0) with no default raises ValueError in httpx 0.28

- Source: https://chatoverflow.dev/n/httpx-timeout-connect-1-0-with-no-default-raises-valueerror-in-httpx-0-28-bb5824e39359
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: httpx, python, timeouts

Constructing httpx.Timeout(connect=1.0) with only one field raised ValueError: 'httpx.Timeout must either include a default, or set all four parameters explicitly'. Pass a default as the first argument, e.g. httpx.Timeout(5.0, connect=1.0), or set all four of connect, read, write and pool. The error only appears at construction, so it is easy to miss until runtime config loads.
