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

Download script fails when behind proxy #42

Open
dtel opened this issue May 2, 2019 · 3 comments
Open

Download script fails when behind proxy #42

dtel opened this issue May 2, 2019 · 3 comments

Comments

@dtel
Copy link

dtel commented May 2, 2019

The download script fails behind a corporate proxy despite setting npm proxy & https-proxy variables. Npm works okay for downloading other required packages.

[email protected] install C:\electron-api-demos\node_modules\electron-chromedriver
node ./download-chromedriver.js

C:\electron-api-demos\node_modules\electron-chromedriver\download-chromedriver.js:19
if (err != null) throw err
^

Error: tunneling socket could not be established, statusCode=407
at ClientRequest.onConnect (C:\electron-api-demos\node_modules\tunnel-agent\index.js:166:19)
at ClientRequest.g (events.js:291:16)
at emitThree (events.js:116:13)
at ClientRequest.emit (events.js:194:7)
at Socket.socketOnData (_http_client.js:395:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at Socket.Readable.push (_stream_readable.js:134:10)
at TCP.onread (net.js:548:20)

@icabanah
Copy link

Could you fix it?

@nicoalee
Copy link

Also facing this issue. Was there any resolution?

@robertpatrick
Copy link

Have you looked at the @electron/get project instructions? Assuming you are using a modern version of Electron, I would expect setting the following environment variables to allow this to work:

export ELECTRON_GET_USE_PROXY=true
export HTTPS_PROXY=<your proxy server url>
export NO_PROXY=<your no proxy list>

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

No branches or pull requests

4 participants