Skip to content

Replay: Error when capturing keyboard event without key #8237

@bjornharvold

Description

@bjornharvold

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/angular

SDK Version

7.52.1

Framework Version

7.52.1

Link to Sentry event

https://wink-travel.sentry.io/issues/4212802473/?alert_rule_id=652630&alert_timestamp=1685286765620&alert_type=email&environment=prod&project=1406670&referrer=alert_email

SDK Setup

Sentry.init({
  release: `${VERSION.version}`,
  environment: environment.environment,
  ignoreErrors: ['ResizeObserver loop limit exceeded'],
  dsn: 'https://f99a2fe8adbe4fb9bc216d46c66b4b85@o237992.ingest.sentry.io/1406670',
  // beforeSend(event, hint) {
  //   const eventConditional = event?.exception?.values != null && event?.exception?.values[0]?.value?.startsWith('Non-Error exception captured');
  //   let messageConditional = false;

  //   if (hint?.originalException != null && hint?.originalException instanceof Error) {
  //     const originalExceptionError: Error = hint.originalException;
  //     messageConditional = originalExceptionError.message.startsWith('Non-Error exception captured');
  //   }
  //   /* eslint-disable */
  //   const isNonErrorException = eventConditional || messageConditional;
  //   /* eslint-enable */

  //   if (isNonErrorException) {
  //     // We want to ignore those kind of errors
  //     console.warn('Received a non-standard error', event);
  //     return null;
  //   }
  //   return event;
  // },
// This sets the sample rate to be 10%. You may want this to be 100% while
  // in development and sample at a lower rate in production
  replaysSessionSampleRate: 0.1,
  // If the entire session is not sampled, use the below sample rate to sample
  // sessions when an error occurs.
  replaysOnErrorSampleRate: 1.0,
  integrations: [
    new Sentry.Replay({
      networkDetailAllowUrls: environment.sentry.networkDetailAllowUrls,
      networkRequestHeaders: environment.sentry.networkRequestHeaders,
      networkResponseHeaders: environment.sentry.networkResponseHeaders,
    }),
    new BrowserTracing({
      tracingOrigins: environment.sentry.tracingOrigins,
      routingInstrumentation: Sentry.routingInstrumentation,
    }),
  ],
 tracesSampleRate: 0.2,
});

Steps to Reproduce

This error was created by a customer. There should be enough information in the Sentry event URL

Expected Result

Should not see any errors

Actual Result

Sentry error occurring

Metadata

Metadata

Assignees

Labels

No labels
No labels
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions