Skip to content

Catch auto-updater check/download rejections - #110

Merged
wassgha merged 1 commit into
mainfrom
create-pull-request
Oct 3, 2026
Merged

wassgha merged 1 commit into
mainfrom
create-pull-request

Conversation

@wassgha

@wassgha wassgha commented Oct 3, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes Sentry issue 7652109640: Error: net::ERR_CONNECTION_TIMED_OUT (unhandled, auto.node.onunhandledrejection). The report came from a Windows client on 1.2.1 whose connection dropped while downloading the v1.2.3 installer.

With autoDownload = true, electron-updater returns a downloadPromise from checkForUpdates(). Nothing awaits it, and when the download fails the library emits error and then re-throws. The void autoUpdater.checkForUpdates() calls had the same problem when the check itself failed. In both cases the error was already logged and then also reported as an unhandled rejection.

Both call sites now go through a checkForUpdates() helper that catches the check and download promises. Failures are still logged by the existing autoUpdater.on("error") listener, and the hourly interval retries.

Test plan

  • npm run typecheck:electron passes
  • Not yet tested against a real dropped connection: in a packaged build, start an update and cut the network mid-download. The failure should appear in electron-log and not in Sentry.

🤖 Generated with Claude Code

electron-updater emits "error" and then re-throws from both the
checkForUpdates() promise and the autoDownload downloadPromise. Neither
was handled, so network failures mid-download (ERR_CONNECTION_TIMED_OUT)
surfaced in Sentry as unhandled rejections. Errors are still logged via
the existing "error" listener and the hourly check retries.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
app.rescript Ready Ready Preview Oct 3, 2026 9:05pm UTC

@wassgha
wassgha merged commit d699239 into main Oct 3, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — 1b4c9d65 Deployed Oct 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant