Problem with proxies parameter in AsyncClient after update to 0.28.0 #3490
Unanswered
diazdiego1
asked this question in
General
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.
Uh oh!
There was an error while loading. Please reload this page.
-
After updating to version 0.28.1, the
proxiesparameter is no longer accepted inhttpx.AsyncClient, resulting in the following error:TypeError("AsyncClient.init() got an unexpected keyword argument 'proxies'")
Before this update, the
proxiesparameter was correctly used to configure proxies directly in theAsyncClientinstance. However, with the current version, attempting to pass theproxiesparameter to configure proxies results in the error mentioned above.Steps to Reproduce:
httpxin your virtual environment.AsyncClientwith theproxiesparameter configured:How can I configure multiple proxies (both HTTP and HTTPS) in version 0.28.1 of httpx, considering that the proxies parameter is no longer accepted?
Beta Was this translation helpful? Give feedback.
All reactions