Skip to content
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

Add HTTP Proxy support to NPM Binary Installer #1067

Conversation

farawaysouthwest
Copy link
Contributor

Proposed fix for: #899

Adds a simple method to create an axios compliant proxy object from the HTTP/HTTPS_PROXY env's, and pass in as part of fetchOptions for the install function. (https://github.com/EverlastingBugstopper/binary-install/blob/main/packages/binary-install/index.js#L54)

@apollo-cla
Copy link

@farawaysouthwest: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

@netlify
Copy link

netlify bot commented Apr 6, 2022

👷 Deploy request for apollo-cli-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit a962a42

Copy link

@kumarrishav kumarrishav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR

LGTM.

@farawaysouthwest
Copy link
Contributor Author

Thanks for the PR

LGTM.

thanks for your help @kumarrishav! I have not dealt with no_proxy before and was not aware of that requirement.

@kumarrishav
Copy link

Thanks for the PR
LGTM.

thanks for your help @kumarrishav! I have not dealt with no_proxy before and was not aware of that requirement.

yeah. Np. Thank you for doing this

@EverlastingBugstopper EverlastingBugstopper merged commit f4f8277 into apollographql:main Apr 8, 2022
@EverlastingBugstopper EverlastingBugstopper added this to the 0.5.0 milestone Apr 8, 2022
EverlastingBugstopper added a commit that referenced this pull request Apr 8, 2022
@EverlastingBugstopper
Copy link
Contributor

@farawaysouthwest would you mind filing a follow up PR to use the TypeScript package you linked?

@farawaysouthwest farawaysouthwest mentioned this pull request Apr 8, 2022
@farawaysouthwest farawaysouthwest deleted the mitch/add-proxy-npm-installer branch April 8, 2022 17:31
@kumarrishav
Copy link

unfortunately, this doesn't seem working because of the possible bug in Axios while using HTTPS over HTTP proxy
I tried with experiment following solution using tunnel seems working.

some resource:
https://janmolak.com/node-js-axios-behind-corporate-proxies-8b17a6f31f9d
axios/axios#925

@kumarrishav
Copy link

axios/axios#3384

@kumarrishav
Copy link

Let me raise the PR to handle these scenario

@kumarrishav
Copy link

kumarrishav commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants