Exception calling "DownloadString" with "1" argument(s): "Unable to connect to the remote server"
Hi, I'm getting the following network related error on most of my builds during the last week on different NodeJS projects (I sometimes have to restart up to 4 times to make the builds succeed):
Exception calling "DownloadString" with "1" argument(s): "Unable to connect to the remote server"
At C:\Program Files\AppVeyor\BuildAgent\Modules\nodejs-utils\nodejs-utils.psm1:147 char:9
+ $content = (New-Object Net.WebClient).DownloadString('http://nodejs.org/ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : WebException
Update-NodeJsInstallation : Cannot bind argument to parameter 'version' because it is an empty string.
At line:1 char:27
+ Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Update-NodeJsInstallation], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Update-NodeJsInstallation
Command executed with exception: Cannot bind argument to parameter 'version' because it is an empty string.
For a recent example, see https://ci.appveyor.com/project/resin-io/resin-settings-storage/his....
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | 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

Support Staff 1 Posted by Feodor Fitsner on 05 Aug, 2015 07:22 PM
When was the first occurrence of such error?
2 Posted by juanchiviotti on 05 Aug, 2015 07:37 PM
Hi Feodor,
I don't know if its the first occurrence, but I can trace it back to 7 days ago (the older I found):
In case it helps, we have two projects that get updated very often, and show the issue in a lot of occurrences:
Support Staff 3 Posted by Feodor Fitsner on 05 Aug, 2015 07:48 PM
It could be some transient networking error. Use
Install-Productcmdlet to switch node/io versions: http://www.appveyor.com/docs/lang/nodejs-iojs#selecting-node-js-or-...4 Posted by juanchiviotti on 06 Aug, 2015 04:34 PM
Hi Feodor,
Using `Install-Product` workarounds the issue.
Thank you for the support.
—
Juan Cruz Viotti, Software Engineer
[email blocked]
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:58 AM.