Intermittently unable to connect to

Feodor Fitsner's Avatar

Feodor Fitsner

20 Aug, 2015 03:29 PM

Original discussion:

Thank you for providing problematic URLs! I've been able to do a simple script reproducing the issue:

I ran the build across build workers in 3 different data centers:

  • 1.0.1 - 1.0.10 - Pro environment (San Jose)
  • 1.0.11 - 1.0.20 - OSS environment (Dallas)
  • 1.0.21 - 1.0.30 - Azure environment (Central US - Iowa)

There is slightly "better" result on Azure, but in general sporadic "Unable to connect ..." error appears when downloading from all 3 locations which clearly indicates the problem is on side (web sites issues or networking issues or CDN issues, etc.).

There is another registered case with similar/related issue: (the script there is requesting the contents of

Most likely is not well suited for serving content on a high rate or it relies on a client with retries (like web browser).
I'd recommend doing retries. This could be consequent run of npm install command in your build with this approach or module author can implement that retry logic. Or if the module caches downloaded file on file system and checking that cache before download you can setup build cache for those files:

Hope that helps.

  1. 1 Posted by saper on 20 Aug, 2015 03:46 PM

    saper's Avatar

    Thank you very much!

    We will try to report this upstream (to people) and/or implement a workaround.

  2. 2 Posted by dane on 20 Aug, 2015 03:55 PM

    dane's Avatar

    I've also been seeing this problem a lot recently and its been just as common on travis-ci as appveyor. One pattern I think I've seen is that it appears to happen less with node v0.10.40 than earlier versions. But definitely seems like either a problem or a node-gyp bug.

  3. 3 Posted by saper on 20 Aug, 2015 04:12 PM

    saper's Avatar

    Filed with node.js (not sure it's the right place though).

  4. 4 Posted by saper on 23 Aug, 2015 09:53 AM

    saper's Avatar

    We confirmed independently that this issue was not related to AppVeyor at all. Thank you for your research (it helped others who just identified "AppVeyor is flaky", which wasn't true) and I think we should close this.

  5. Support Staff 5 Posted by Feodor Fitsner on 23 Aug, 2015 09:54 AM

    Feodor Fitsner's Avatar

    Yeah, thanks. Seems like it's working again now.

  6. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:59 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac