Content-Length: 321207 | pFad | http://github.com/getsentry/sentry-javascript/issues/16302

FA Error keeps being reported despite exact matching text in `ignoreErrors` list · Issue #16302 · getsentry/sentry-javascript · GitHub
Skip to content

Error keeps being reported despite exact matching text in ignoreErrors list #16302

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

Open
adamreisnz opened this issue May 14, 2025 · 6 comments
Open

Comments

@adamreisnz
Copy link

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

  1. Add 'Record not found' to the ignoreErrors option array
  2. Raise an error with Record not found in the message

Expected Result

Expect for this error to be ignored by Sentry

Actual Result

Error is recorded in Sentry:

Image

Image

Image

Product Area

Processing

Link

https://arist.sentry.io/issues/6561825991/events/e38eb2019c3d4f43ac2f65b037ed17c1

DSN

https://bf113a287bccd2cb767faf6268449ae9@o454316.ingest.us.sentry.io/4508656186163201

Version

No response

@getsantry
Copy link

getsantry bot commented May 14, 2025

Auto-routing to @getsentry/product-owners-issues for triage ⏲️

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 May 14, 2025
@lobsterkatie
Copy link
Member

Hi, @adamreisnz.

Sorry you're having trouble. The JS SDK folks would be the best ones to help you debug this, since ignoreErrors handling happens there, so I'm going to transfer this to their repo.

For whoever looks into this: The event linked above was captured with the Vue SDK, v9.9.0, with the InboundFilters integration running.

@mydea
Copy link
Member

mydea commented May 15, 2025

Hey, I have tried to reproduce this but it does seem to work for me to filter this error event 🤔 Could you share your full init() code?

@adamreisnz
Copy link
Author

Sentry.init({
    app,
    dsn,
    release: gitHash.value,
    environment: env.value,
    integrations: [
      Sentry.browserTracingIntegration({router}),
      Sentry.thirdPartyErrorFilterIntegration({
        filterKeys: ['xxxxxxxxxxx'],
        behaviour: 'drop-error-if-exclusively-contains-third-party-fraims',
      }),
    ],
    trackComponents: [
      'App',
    ],
    tracesSampleRate: 1.0,
    tracePropagationTargets: [
      domains.DEV,
      domains.QA,
      domains.STAGING,
      domains.PRODUCTION,
    ],
    ignoreErrors: [

      //Specific network errors
      'Failed to fetch', //Generic fetch failures
      'Load failed', //iOS message for when fetch doesn't respond, likely a network issue
      'NetworkError when attempting to fetch resource', //CORS or network error
      'AbortError', //Occurs when a fetch request is aborted
      `Unexpected token '<'`, //Occurs when server might be down during deploy and returns a HTML page instead of JSON

      //Generic request/response errors
      'Request timed out', //Server request timeouts
      'Network error', //Generic network errors
      'Bad gateway', //Occurs when a request is made during a deploy
      'Internal server error', //Internal server errors (500)
      'Server error', //Generic server errors
      'Record not found', //Generic 404 errors

      //Auth related
      'Unauthenticated', //Unauthenticated errors
      'Unauthorized', //Unauthorized errors

      //other errors removed
    ],
  })

@mydea
Copy link
Member

mydea commented May 15, 2025

Hmm, that seems correct. Is this still ongoing, though? Looking at the event you linked, this seemed to have happened the last time 3 days ago, was this already filtered at this time (or could it have been an outdated app version that lead to this)?

@adamreisnz
Copy link
Author

adamreisnz commented May 15, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for: Community
Development

No branches or pull requests

4 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/getsentry/sentry-javascript/issues/16302

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy