-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Can NOT capture error wrapped rxjs.Observable.error() #2533
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
Comments
I also hit this error but the OP wasn't super clear to me so I've created a repro: https://github.com/goosmurf/sentry-javascript-2533 You'll need to replace the DSN, then Note that the handleError() is basically a no-op but an exception is still logged. If you set a breakpoint against Sentry.captureException() you can further observe that the exception is logged to sentry.io prior to handleError() being called. |
I use
Works fine, But these are captured 2 times in sentry one with GlobalErrorHandlerService.handleError |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
for those wondering - I solved similar problem using error property in Observer - like this observable.pipe(...).subscribe({
next: result => console.log(result),
error: err => { /* handle or ignore error */}
}) this way default angular/rxjs error handler doesn't raise the exception |
Package + Version
@sentry/browser
@sentry/node
raven-js
raven-node
(raven for node)Version:
Description
My application(Angular@9) throws
rxjs.Observable.error()
and catch that bySentry.captureException();
.At Sentry.io, I saw
https://sentry.io/organizations/{myorg}/issues/1582573825/
It may be better that Sentry.captureException() could be to catch
rxjs.Observable.error()
simply.Or had I mistaken for using
@sentry/browser
??code
The text was updated successfully, but these errors were encountered: