question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Cannot read property 'name' of null" in 5.6.1

See original GitHub issue

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other:

Version:

5.6.1

Description

Error caught in production. I don’t have any way to reproduce.

Error:

TypeError: Cannot read property 'name' of null
  at _computeStackTrace(./node_modules/@sentry/browser/esm/tracekit.js:763:22)
  at _traceKitWindowOnUnhandledRejection(./node_modules/@sentry/browser/esm/tracekit.js:208:30)

Source:

     }
        }
        catch (e) { }
        return {
            original: ex,
>>>         name: ex.name,
            message: ex.message,
            mode: 'failed',
        };
    }
    computeStackTrace._augmentStackTraceWithInitialElement = _augmentStackTraceWithInitialElement;

Link to the event: https://sentry.io/share/issue/a9e9f18d850148f8bf4ef445be0840b0/

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
kamilogorekcommented, Aug 16, 2019

raven-js v3 has been changed/evolved/fixed in the timeframe of over 3 years and it had very small API surface, providing not even half of the features we have in the new version. Not to mention support for typescript, es6 modules, multiple builds and so on, so on. That’s why it was battle-tested.

Also, it was mostly used in pre-2018 (when we started to migrate toward v4+). JS changed a lot since then, and it in itself cases more and more troubles.

Anyway, this bug is not even caused by our piece of code, but that’s totally fine, as we depend on it. I’ll patch it and release on Monday.

Cheers!

2reactions
Sijacommented, Aug 14, 2019

/OT/

I have to say I’m flabbergasted with bugs/release ratio since raven-js - which was production-proven piece of stack, which could be plugged-in and forgotten for months or years to come. These days there are practically no stable releases anymoar, despite approaching v6.0 pretty soon if current trend continues…

What happened to Sentry? Did fancy illustrations become more important than well-thought, quality-driven code?

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read property 'name' of Null in JavaScript
The "Cannot read property 'name' of null" error occurs when accessing the name property on a null value. To solve the error, conditionally...
Read more >
how to fix this TypeError: Cannot read property 'name' of null
Although Role is not null , The value of Role.name is null , meaning that it has no value assigned to it. That...
Read more >
TFS 2018 RC2 Cannot read property 'name' of null - error on ...
I use a filter with a specific iteration on a storyboard. For example, iteration 1. An error occurred when the administrator deleted iteration...
Read more >
typeerror can not read property x of null - YouTube
Join this channel to get access to perks:https://www.youtube.com/channel/UCoSpmr2KNOxjwE_B9ynUmig/joinMy GearCamera ...
Read more >
Core Technologies
The property name element refers to the name of the JavaBean property, ... The ApplicationContext lets you read bean definitions and access them, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found