Repository navigation
Closed
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/react
SDK Version
7.111.0
Framework Version
React 18.2.0
Link to Sentry event
SDK Setup
import * as Sentry from '@sentry/react';
Sentry.init({
dsn: '_____________________________',
environment: process.env.NODE_ENV,
integrations: [Sentry.replayIntegration()],
replaysSessionSampleRate: process.env.NODE_ENV === 'production' ? 0.1 : 1,
replaysOnErrorSampleRate: 1.0,
ignoreErrors: ['Non-Error promise rejection captured'],
release: `${process.env.HEROKU_APP_NAME}-${process.env.HEROKU_RELEASE_VERSION}`,
autoSessionTracking: true
});
Steps to Reproduce
- Open Product url
- In the Javascript console I can see error like
TypeError null is not an object (evaluating 'M.createdByUser.fullName')
Expected Result
I want to see the issue on Sentry, but it wasn't tracked
Actual Result
Issue was not created. Sometimes it happens, perhaps it's related that I can see Cannot read properties of undefined (reading 'value') error inside Sentry library
Reacted by Peter Hagen
Metadata
Metadata
Assignees
Labels
No labels
Projects
- StatusShow more project fieldsNo status
Activity
AbhiPrasad commentedon Apr 23, 2024
@NaumenkoSergiy the Sentry SDK does filter some errors by default if they are
ScriptErrorsor similar:sentry-javascript/packages/core/src/integrations/inboundfilters.ts
Line 10 in b61d820
If you have enabled inbound filters via the Sentry UI, the sentry server will drop errors related old browser versions or noisy browser extensions (these are usually unactionable).
https://docs.sentry.io/product/data-management-settings/filtering/
If you turn on
debug: truewhile running the Sentry SDK, you can see if the SDK dropped any events and why. Otherwise you can go to your project stats to see how many errors are being dropped server-side.NaumenkoSergiy commentedon Apr 23, 2024
@AbhiPrasad thank you!
AbhiPrasad commentedon Apr 23, 2024
This seems like a bug with how we do hydration error detection in the replay sdk - we should figure out what is going on there. It seems that
event.exception.values[0]can be `undefined, we should guard for it.sentry-javascript/packages/replay-internal/src/coreHandlers/handleBeforeSendEvent.ts
Lines 23 to 24 in b61d820
@scttcper could you take a look at how this could happen when you get some time?
fix(replay): Fix guard for exception event (#12441)