-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
I am using raven-js with a react-native app to report errors and crashes. TypeError is thrown while reporting errors received from some third party libraries. For me, it is happening while reporting errors thrown by Firebase Javascript SDK. Firebase provides a promise based API in which I log the errors directly to Sentry. For e.g.
firebaseRef.update(obj).catch(error => {
Raven.captureException(error)
})When an error is thrown by the above call, instead of seeing the error, I see below error on Sentry
I guess the error object doesn't have a stack trace but in such cases, just the error should be recorded.
What is the expected behavior?
No TypeError should be thrown and the correct error should be recorded.
Which versions of Raven.js, and which browser and OS are affected by this issue? Did this work in previous versions of Raven.js? Are you using the CDN (http://ravenjs.com)? Are you using hosted Sentry or on-premises? If on-premises, which version (e.g. 8.7.0)?
raven-js: 3.7.0
react-native: 0.37
