-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix(dockerfile): Use proxy env vars in aiohttp client requests #7260
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you decide not to wrap it in an env var?
@omriyoffe-panw yes, because I added a standard proxy support, and not used the entire env vars configurations. |
Moved all aiohttp requests to an existed wrapper.
Extended the wrapper to support different methods, get url as a URL type as well as str, and changed payload to optional (for GET requests).
In the wrapper, added usage of proxy env vars in order to avoid a bug a customer faced where its configured proxy env vars weren't in use in certain requests (the ones that were made using aiohttp lib).