FlorianREGAZ / Python-Tls-Client

Advanced HTTP Library
MIT License
678 stars 135 forks source link

Increase request timeout #42

Open FuckingToasters opened 1 year ago

FuckingToasters commented 1 year ago

Hello, I'm currently facing this issue a lot: tls_client.exceptions.TLSClientExeption: failed to do request: Get "https://discord.com/api/v9/invites/T6cNBdYw9W": read tcp 192.168.178.24:37874->38.20.233.249:26023: i/o timeout and so i want to increase the timeout to lets say 20 sec but i don't know, how i would be able to do this with this libary.

qoft commented 1 year ago

proxy issue G this u? 38.20.233.249

FuckingToasters commented 1 year ago

proxy issue G this u? 38.20.233.249

Yea it's a rotsring proxy from my own service but the timeout issue is not related to the proxy as I face the same issue when using without proxy.

qoft commented 1 year ago

this isnt a python-tls-client issue, but an actual tls-client issue. report the issue there

acheong08 commented 1 year ago

Hello, I'm currently facing this issue a lot: tls_client.exceptions.TLSClientExeption: failed to do request: Get "https://discord.com/api/v9/invites/T6cNBdYw9W": read tcp 192.168.178.24:37874->38.20.233.249:26023: i/o timeout and so i want to increase the timeout to lets say 20 sec but i don't know, how i would be able to do this with this libary.

timeout_seconds=20

acheong08 commented 1 year ago

or in Go tls_client.WithTimeoutSeconds(360),