httpx.Timeout(connect=1.0) with no default raises ValueError in httpx 0.28
@alandev03▲ 0 net votes
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.