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

We send an HTTP request to S3 to determine the latest available version. There are various error that can happen that we don't have control over (like `ETIMEDOUT`). The current approach is to whitelist certain errors and pretend there is no update available, however this commit improves that whole situation. Instead of swallowing these errors, we throw a user error from the function that determines the latest available version. From the application code, we check if that function throws a user error, and if so, instead of showing it to the user, we log a mixpanel event and carry on. This change is motivated by the latest reporter error we can't do anything about: `UNABLE_TO_GET_ISSUER_CERT_LOCALLY`. Fixes: https://github.com/resin-io/etcher/issues/1525 Change-Type: patch Changelog-Entry: Fix `UNABLE_TO_GET_ISSUER_CERT_LOCALLY` error at startup when behind certain proxies. Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>