Skip to content

function isSameStacktrace() is thrown with TypeError: Cannot read property 'frames' of undefined #1125

Description

@zivl

Inside raven.js there is a logic in isSameStacktrace function to determine whether the current error is the same as the previous one (in a certain time frame).

I have something like the following code:

promise.catch(e => Raven.catchException(e))

and I get this report in Sentry:

TypeError: Cannot ready property 'frames' of undefined
(line 324 is highlighted: var frames1 = stack1.frames;)

I would expect to have another "null-check" before accessing this property.

I'm using "raven-js": "^3.12.1", and get this report for different browsers and different operating systems.

Let me know if you find this issue relevant and I'll be happy to submit a fix
Cheers,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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