Can't make timeout work #2281
Unanswered
tamis-laan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm doing a request with httpx that returns:
httpx.ConnectTimeout
I waits 20 seconds for this. And I want to make it shorter, i.e. 2 seconds for example so I do:
httpx.AsyncClient(timeout = httpx.Timeout(2.0, connect=2.0))
But still it takes 20 seconds, am I doing something wrong here?
Beta Was this translation helpful? Give feedback.
All reactions