-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement proxy_form_env() function #1998
Comments
Please don't do it.
BTW if you would to make a PR for adding |
we load proxy info from env already. https://github.com/aio-libs/aiohttp/blob/master/aiohttp/client_reqrep.py#L298 |
Ooops, I've missed this. |
Only if |
I see. The feature is not completed. |
+1 |
Since the feature is not complete, it would be useful for current users of |
Unfortunately my proposal doesn't work. There are two proxies: HTTP and HTTPS, Thus let's add bool |
Actually it should be parameter for |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs. |
Long story short
Custom keyword arguments are not provided to the request class constructor by the _request method on the client session. This prevents certain arguments from being provided (e.g. proxy_from_env) as there's no arguments on the request method for them.
Expected behaviour
They would be passed.
Actual behaviour
They aren't.
Steps to reproduce
TypeError: _request() got an unexpected keyword argument **'proxy_from_env'**
Your environment
aiohttp 2.2.0 on Python 3.5.3
The text was updated successfully, but these errors were encountered: