mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-20 13:27:17 +00:00

Querying S3 to determine the latest available versions might throw `ECONNRESET` and `ECONNREFUSED`. This commit extends the `s3Packages.getRemoteVersions()` function to handle these errors and return no available version if so, like we already do with other similar HTTP errors. Change-Type: patch Changelog-Entry: Fix `ECONNRESET` and `ECONNREFUSED` errors when checking for updates on unstable connections. Fixes: https://github.com/resin-io/etcher/issues/1396 Fixes: https://github.com/resin-io/etcher/issues/1388 Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>