tag:help.appveyor.com,2012-11-13:/discussions/problems/262-powershell-download-file-for-an-msi-getting-timed-out-only-on-appveyorAppVeyor: Discussion 2018-10-19T08:16:32Ztag:help.appveyor.com,2012-11-13:Comment/327160162014-04-25T20:46:48Z2014-04-25T20:46:48ZPowershell download file for an MSI getting timed out only on AppVeyor<div><p>How big is that MSI?</p>
<ul>
<li>Feodor</li>
</ul></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/327160162014-04-25T21:01:06Z2014-04-25T21:01:06ZPowershell download file for an MSI getting timed out only on AppVeyor<div><p>24.5 MB</p></div>Hari Menontag:help.appveyor.com,2012-11-13:Comment/327160162014-04-25T21:12:14Z2014-04-25T21:12:14ZPowershell download file for an MSI getting timed out only on AppVeyor<div><p>Forgot to add the URL to the MSI in the question. Has added that
in now - <a href=
"http://flickrdownloadr.com/installer/win/dependencies/gtk-sharp-2.12.25.msi">
http://flickrdownloadr.com/installer/win/dependencies/gtk-sharp-2.1...</a></p></div>Hari Menontag:help.appveyor.com,2012-11-13:Comment/327160162014-04-25T22:56:56Z2014-04-25T22:56:56ZPowershell download file for an MSI getting timed out only on AppVeyor<div><p>I've also been noticing intermittent connectivity problems while
downloading ~30 MB dependency files for the past few days, see</p>
<p><a href=
"http://ci.appveyor.com/project/tkelman/julia/build/1.0.393">http://ci.appveyor.com/project/tkelman/julia/build/1.0.393</a><br>
<a href=
"http://ci.appveyor.com/project/tkelman/julia/build/1.0.394">http://ci.appveyor.com/project/tkelman/julia/build/1.0.394</a><br>
<a href=
"http://ci.appveyor.com/project/tkelman/julia/build/1.0.396/job/2">http://ci.appveyor.com/project/tkelman/julia/build/1.0.396/job/2</a><br>
These are using curl rather than PowerShell to download files,
which leads me to suspect it may have something to do with the
internet access to the build worker VM's.</p></div>tonytag:help.appveyor.com,2012-11-13:Comment/327160162014-04-26T01:00:01Z2014-04-26T01:00:01ZPowershell download file for an MSI getting timed out only on AppVeyor<div><p>I've been able to notice rare networking lags on Azure.</p>
<p>Apparently, it's not straightforward to set timeout for
WebClient :)<br>
<a href=
"http://stackoverflow.com/questions/601861/set-timeout-for-webclient-downloadfile">
http://stackoverflow.com/questions/601861/set-timeout-for-webclient...</a><br>
<a href=
"http://stackoverflow.com/questions/17370957/downloading-file-from-url-with-timeout">
http://stackoverflow.com/questions/17370957/downloading-file-from-u...</a></p>
<p>I played with BITS cmdlets and they don't seem to be working in
a custom PowerShell runspace.</p>
<p>I'm going to deploy AppVeyor's own cmdlet with timeout support,
something like <code>Start-FileDownload</code>, which will be
available in the build session.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/327160162014-04-27T20:05:28Z2014-04-27T20:05:28ZPowershell download file for an MSI getting timed out only on AppVeyor<div><p><code>Start-FileDownload</code> cmdlet is now available in build
session: <a href=
"http://www.appveyor.com/docs/how-to/download-file">http://www.appveyor.com/docs/how-to/download-file</a></p>
<p>Default timeout is 5 minutes.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/327160162014-04-27T20:48:57Z2014-04-27T20:48:57ZPowershell download file for an MSI getting timed out only on AppVeyor<div><p>Thanks for this new and improved option for downloading files,
Feodor.</p>
<p>It looks like the original issue (whtever was its cause) is also
now completely resolved.</p></div>Hari Menon