Skip to content

<unknown> #3

Description

@sentry

Sentry Issue: ELECTRON-2

Event: Event `Event` (type=error) captured as promise rejection

This issue was automatically created by Sentry via Auto-file Production crashes

Activity

  1. added
    bugSomething isn't working
    sentryAuto-created from Sentry crash report
    on Apr 28, 2026
  2. codedev-david commented on Apr 28, 2026

    @codedev-david
    Owner

    Fixed in v1.11.24 (commit 1050f8e). Root cause: renderer's unhandledrejection listener was forwarding raw DOM Event objects to Sentry, which can't symbolize them — hence the "Event Event (type=error)" title.

    Fix in src/renderer/src/lib/sentry.ts:

    • Real Error instances pass through unchanged.
    • DOM Events with a target are wrapped in an Error capturing the event type + target tag + src/href.
    • Empty 'error' Events with no target are dropped (the case that produced this issue).
    • Strings/objects/null are coerced into properly-messaged Errors.

    8 new unit tests in tests/renderer/sentry.test.ts cover the matrix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageAwaiting initial reviewsentryAuto-created from Sentry crash report

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions