Skip to content

TypeError: undefined is not an object (evaluating 't.exception.values[0].stacktrace.frames') #845

@varungupta85

Description

@varungupta85

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

screen shot 2017-01-27 at 10 08 22 am

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions