Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError Can't find variable: gmo #15389

Closed
3 tasks done
mhmtclk1705 opened this issue Feb 12, 2025 · 12 comments · Fixed by #15432
Closed
3 tasks done

ReferenceError Can't find variable: gmo #15389

mhmtclk1705 opened this issue Feb 12, 2025 · 12 comments · Fixed by #15432
Labels
Package: nextjs Issues related to the Sentry Nextjs SDK

Comments

@mhmtclk1705
Copy link

mhmtclk1705 commented Feb 12, 2025

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nextjs

SDK Version

8.36

Framework Version

No response

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

Image

I have been getting 'refererror: can't find variable: gmo' error on Sentry for 5 days and I can't find the reason for this error. I don't use a variable named gmo in slugjs and blog, but I keep getting this error.

Expected Result

Actual Result

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Feb 12, 2025
@github-actions github-actions bot added the Package: nextjs Issues related to the Sentry Nextjs SDK label Feb 12, 2025
@brtinney
Copy link

I have been seeing this only from "Google 354.0.720749604" and "Google 355.0.723646882" on iOS (many versions). It seems likely it has something to do with the browser, not anyone's code (or maybe an interaction with Vite?) I'm using Nuxt, personally.

This was happening with a manual integration via @sentry/browser, though I haven't seen it yet (which doesn't mean a lot) on any release that uses @sentry/nuxt, which I switched to recently to specifically to try to get more information on what this error was (actually enabling source maps and such).

@spencerkordecki
Copy link

we've been seeing a similar thing as well

Image

first seen on feburary 6 at 7-11am ET

we updated all of our integrations to the latest on the 31st

    "@sentry/cli": "^2.41.1",
    "@sentry/node": "^8.49.0",
    "@sentry/react": "^8.52.0",
    "@sentry/webpack-plugin": "^3.1.0",

@LinziBligh
Copy link

LinziBligh commented Feb 12, 2025

This thread may help! The-Best-Codes/bestcodes-react-site#65 looks like it's something to do with Google search app on ios

@andreiborza
Copy link
Member

Hi @mhmtclk1705 thanks for filing this and thanks everyone else for chiming in with what this is.

As it's out of our hands, I can only suggest filtering these errors out for now. See https://docs.sentry.io/platforms/javascript/configuration/integrations/inboundfilters/ for more info.

@The-Best-Codes
Copy link

I don't think this issue is a problem with Sentry. HoneyBadger and a few other issue trackers have been seeing it too.
The-Best-Codes/bestcodes-react-site#65 (comment)

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Feb 12, 2025
@andreiborza
Copy link
Member

Yep, I'll leave this open for now for people to find, but the recommendation is to filter these out for now.

@tortucu
Copy link

tortucu commented Feb 17, 2025

Hello, Is there any updates on this? I'm still getting in my sentry yet.

Image

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Feb 17, 2025
@s1gr1d
Copy link
Member

s1gr1d commented Feb 17, 2025

Google Search App introduced this issue a short while ago (also check the Google issue tracker).

As @andreiborza already mentioned in another comment: Please add an Inbound Filter by specifying a regex or a string in ignoreErrors. For example, matching strings that have gmo in it. But that's up to you and how strict you want to filter exactly.

@jperezr21
Copy link

Adding the following to sentry.client.config.ts make these go away:

  ignoreErrors: ["ReferenceError: Can't find variable: gmo"],

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Feb 17, 2025
@Lms24
Copy link
Member

Lms24 commented Feb 17, 2025

We'll filter this out in the SDK by default going forward as it's affecting quite a lot of people (including Sentry lol). We'll open a PR to add this soon.

@s1gr1d s1gr1d closed this as completed in 136370c Feb 17, 2025
@tortucu
Copy link

tortucu commented Feb 17, 2025

@Lms24 I'm using @sentry/angular. when the updated result will be reflected in this package?

@Lms24
Copy link
Member

Lms24 commented Feb 17, 2025

As soon as we cut the next release which will happen in the coming days. This issue will receive a notification once the release is out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: nextjs Issues related to the Sentry Nextjs SDK
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

10 participants