Skip to content

Error was not tracked on Sentry #11759

Closed
@NaumenkoSergiy

Description

@NaumenkoSergiy

Is there an existing issue for this?

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

https://tradespace-io.sentry.io/issues/4992144873/?alert_rule_id=4376506&alert_type=issue&notification_uuid=4bafaf33-aa07-425a-a7ef-d0e79f61b9dd&project=5528704&referrer=slack

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

  1. Open Product url
  2. 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

Metadata

Metadata

Assignees

Labels

Package: reactIssues related to the Sentry React SDKPackage: replayIssues related to the Sentry Replay SDK

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions