Closed XiaocongDong closed 6 years ago
Hello, I haven't used this library yet so I can't help you troubleshoot your issue that much, but I just came here from the Sentry React documentation and thought maybe their section on Redux Saga Middleware might be able to give you some ideas? Sorry that I can't help out anything more.
The capturing of exceptions is actually done by Raven-js, so I would look there first. This library just adds additional context to exceptions caught by Raven-js.
I ran into a similar issue and the following code fixed the issue:
const sagaMiddleware = createSagaMiddleware({
onError: error => {
Raven.captureException(error)
}
});
Now I get the errors reported when using redux-saga.
Is this just a case of sagas swallowing errors by default, and you having to go out of your way to ensure Raven sees them?
Yes it appears that's the case.
Hi
I am using this middleware along with redux-saga middleware, it seems like the action thrown from the reducer cannot be caught.
FYI: I use redux-actions to create my actions and reducers, etc. error stacks:
Thanks