Exception calling "DownloadString" with "1" argument(s): "Unable to connect to the remote server"

juanchiviotti's Avatar

juanchiviotti

05 Aug, 2015 07:08 PM

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....

  1. Support Staff 1 Posted by Feodor Fitsner on 05 Aug, 2015 07:22 PM

    Feodor Fitsner's Avatar

    When was the first occurrence of such error?

  2. 2 Posted by juanchiviotti on 05 Aug, 2015 07:37 PM

    juanchiviotti's Avatar

    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:

  3. Support Staff 3 Posted by Feodor Fitsner on 05 Aug, 2015 07:48 PM

    Feodor Fitsner's Avatar

    It could be some transient networking error. Use Install-Product cmdlet to switch node/io versions: http://www.appveyor.com/docs/lang/nodejs-iojs#selecting-node-js-or-...

  4. 4 Posted by juanchiviotti on 06 Aug, 2015 04:34 PM

    juanchiviotti's Avatar

    Hi Feodor,

    Using `Install-Product` workarounds the issue.

    Thank you for the support.


    Juan Cruz Viotti, Software Engineer
    [email blocked]

  5. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:58 AM.

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