sentry-javascript: SDK bug on iOS Firefox

https://sentry.io/share/issue/52e170dbb4b84d16a8e92ece8d4978e9/

Package + Version

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

Version:

5.5.0

Description

Please see the attached link. I do not have a reproducible repo. But, I am receiving an error

TypeError
null is not an object (evaluating 'a.title')

that originates from the SDK itself rather than from my own code. I do have a few places in my code where state.title is used, but none on the affected page shown in the error.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 18
  • Comments: 22 (5 by maintainers)

Most upvoted comments

Has there been any update on this? Also experiencing the same issue.

Thanks in advance!

Our SDK, nor ReportDialog touche title attribute of any object in any way. There are, however, two open issues at Mozilla’s repository that describes this exact issue:

https://github.com/mozilla/fxa/issues/572 https://github.com/mozilla/fxa/issues/2342

My best recommendation for everyone that encountered this issue in larger volume is to filter it out on the client-side. See: https://docs.sentry.io/platforms/javascript/#filter-events--custom-logic

As we know the final error shape/message, it can be done using ignoreErrors config option directly.

Cheers!

We’ve started to face this issue as well. Any updates or work-around? Exactly the same logs as shown above, exclusively for FF iOS users.

Just wanted to confirm that we are seeing this error as well from iOS Firefox users: TypeError: null is not an object (evaluating 'a.title')

The only .title used anywhere in our codebase is from Sass Modules, and those are already compiled out by the time the code gets to production.

Our Sentry project is private, so unfortunately I cannot provide any links, but all of the issues have been from iOS 13, with Firefox 19 & 20. It’s easy to reproduce, though–just load the site with the Sentry script on it, and it triggers the error.

I am happy to provide any additional information, so feel free to ping me if I can help in any way. 👍

Sorry, do we have any upload of this? I’m having same issue and It’s very frustrated it, don’t have any answer or resolution.

Same thing. Firefox on iOS.

Also experiencing the same exact exception TypeError: null is not an object (evaluating 'a.title') when users are accessing our site via firefox on iOS

We are not referencing title anywhere in our codebase so this is either from the SDK or a conflicting library.

I forgot to move an execution note after adding handleEvent block. Fixed: https://github.com/getsentry/sentry-javascript/commit/3bada5d80d267c8da5a34235caf16a966d374811

This error is only shown as Sentrys because of how we wrap internal timing APIs, see: image

You should be able to dig into the main cause by looking for setTimeout instances in your code that has title access in them.