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

Build fails with TimeOut exception: proxy #585

Closed
just-jeb opened this issue Jul 14, 2016 · 6 comments · May be fixed by qcif/data-curator#563
Closed

Build fails with TimeOut exception: proxy #585

just-jeb opened this issue Jul 14, 2016 · 6 comments · May be fixed by qcif/data-curator#563

Comments

@just-jeb
Copy link

just-jeb commented Jul 14, 2016

  • ^5.12.1:
  • Windows:

Trying to build installer for my package but it fails with the following exception:

Unhandled rejection Error: connect ETIMEDOUT 108.168.243.150:443
at Object.exports._errnoException (util.js:1008:11)
at exports._exceptionWithHostPort (util.js:1031:20)
at TCPConnectWrap.afterConnect as oncomplete
From previous event:
at C:\git\adt_tools\electron\playground\node_modules\electron-builder\src\util\binDownload.ts:52:17
at next (native)
at C:\git\adt_tools\electron\playground\node_modules\fs-extra-p\node_modules\fs-extra\lib\mkdirs\mkdirs.js:35:14
at FSReqWrap.oncomplete (fs.js:123:15)
From previous event:
at tsAwaiter (C:\git\adt_tools\electron\playground\node_modules\electron-builder\src\util\awaiter.ts:10:47)
at Object.build (C:\git\adt_tools\electron\playground\node_modules\electron-builder\src\builder.ts:192:52)
at Object. (C:\git\adt_tools\electron\playground\node_modules\electron-builder\src\build-cli.ts:27:28)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.runMain (module.js:575:10)
at run (bootstrap_node.js:352:7)
at startup (bootstrap_node.js:144:9)
at bootstrap_node.js:467:3

Problem appears both with NSIS and Squirrel target.
I'm behind a corporate proxy, so I suspect it's somehow related to this, although I defined proxy settings (both http & https) for npm.

UPD:
That is a proxy issue for sure - just tried it with no proxy and it works.
Perhaps you're connecting to some server from within electron-builder code (not via npm) and then you probably should provide an option to configure proxy for electron-builder?

@develar
Copy link
Member

develar commented Jul 18, 2016

https://bintray.com is used to download pre-bundled dependencies (e.g. nsis). npm configured proxy should be used, yes.

@marttinen
Copy link

marttinen commented Aug 22, 2016

I've encountered the same issue. Due to the direct usage of nodes 'https' module, http proxies wont work. See httpRequest.ts

I'm working on a PR, using either nugget or request for downloading the binaries, just like electron-download does.

@develar
Copy link
Member

develar commented Aug 22, 2016

@marttinen It is better to not use nugget or request, but fix httpRequest.ts I think it is not a lot of work here.

@ajklotz
Copy link

ajklotz commented Aug 31, 2016

Does anyone know which npm packages can be downloaded manually to bypass this error?

@develar
Copy link
Member

develar commented Sep 1, 2016

@ajklotz Unpack Archive.zip to ~/.cache

@develar develar reopened this Sep 6, 2016
@develar develar changed the title Build fails with TimeOut exception Build fails with TimeOut exception: proxy Sep 11, 2016
@develar
Copy link
Member

develar commented Sep 11, 2016

Standard env HTTP_PROXY / HTTPS_PROXY is supported. NPM conf will be added later.

develar added a commit to develar/electron-builder that referenced this issue Sep 11, 2016
develar added a commit to develar/electron-builder that referenced this issue Sep 11, 2016
develar added a commit to develar/electron-builder that referenced this issue Sep 11, 2016
develar added a commit to develar/electron-builder that referenced this issue Sep 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants