choco icon indicating copy to clipboard operation
choco copied to clipboard

Retry downloads when failure is caused by transient network problems

Open jayvdb opened this issue 6 years ago • 1 comments

As noted at https://github.com/chocolatey/choco/issues/1840 , fetches sometimes fail, even after successful ones have shown that the network is operational.

On a CI worker, failing for transient network problems is very undesirable.

It would be useful for choco to have an option to retry several times with reasonable backoff periods.

Sometimes the error message is quite obvious, like

[NuGet] An error occurred while loading packages from 'https://chocolatey.org/api/v2/': The operation has timed out.

Looking for https://chocolatey.org/api/v2/ in the error messages is probably sufficient to trigger a retry, if configured to not fail on the first sight of a network connection problem.

https://github.com/NuGet/Home/issues/2269 upstream bug.

jayvdb avatar Jun 18 '19 06:06 jayvdb

Hi everybody. Has there been any update or further development on this?

quelixir avatar Nov 22 '20 07:11 quelixir