-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cause of error is not sent to Sentry #747
Comments
I see that something was merged in to fix this, but I still see the problem in the latest version of the React and Electron plugins: If this is actually fixed and I'm doing something wrong or am mistaken, then I'd appreciate knowing. |
Do you mean that in the Electorn main process it's working as expected but not in the Electron renderer ptocesses? The Electron SDK uses How are you using the React and Electron SDKs together? |
Still digging around with this but I've had a small breakthrough. We're also using the Sentry Node plugin (different repo) and are having similar issues. In our REST service, we're calling:
This was recently removed since we thought we weren't using it, and the breadcrumbs and cause stopped working for the rest of the app. Curiously though, our
The odd thing is, that turning the middleware on/off affects other areas of the application (i.e. things that have nothing to do with REST). I'm left wondering: What is |
Update: Seems I have discovered the cause for both Node, Electron, and React. We were setting The solution was to leave the value of We also disabled the
I suppose this might be a different bug report, namely: |
The Electron SDKs default transport handles offline queueing but also has some callbacks which can be used to create a more effective opt-in mechanism since events can be queued to disk until the user opts-in. https://docs.sentry.io/platforms/javascript/guides/electron/#offline-support In the |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Electron SDK Version
4.11.0
Electron Version
22.3.14
What platform are you using?
Windows
Link to Sentry event
https://symless.sentry.io/issues/4485943131/events/a3e5813f0df746099578daa0ea1c40ed/
Steps to Reproduce
This bug is in both the Electron Sentry plugin and the React Sentry plugin (when React is used with Electron).
cause
(see below)Sentry.captureException(error)
console.log
and confirm that the cause is set and is type ofError
Example:
Expected Result
Sentry error unpacks the error chain and shows the error and cause separately (this works great with the Sentry Node plugin).
Actual Result
The cause is dropped (and also isn't actually found in the JSON sent to Sentry), indicating that both the Electron and React Sentry plugins don't use the cause.
The text was updated successfully, but these errors were encountered: