Skip to content

'The ReadableStream reader was released' error since 8.33.1Β #13931

@artaommahe

Description

@artaommahe

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

8.33.1

Framework Version

React 18.3.1

Link to Sentry event

https://instruqt.sentry.io/issues/5974845065/?alert_rule_id=4248301&alert_type=issue&environment=production&notification_uuid=2239a562-e5ee-4f80-8733-5f2b64db27a2&project=1218778&referrer=slack

Reproduction Example/SDK Setup

Sentry.init({
  dsn: '...',
  release: import.meta.env.VITE_REACT_APP_VERSION,
  environment: isDev ? 'development' : 'production',
  allowUrls: ['...'],
  normalizeDepth: 5,
  integrations: [
    Sentry.reactRouterV6BrowserTracingIntegration({
      useEffect,
      useLocation,
      useNavigationType,
      createRoutesFromChildren,
      matchRoutes,
    }),
    Sentry.replayIntegration(),
  ],
  tracesSampleRate: isDev ? 1 : 0.1,
  replaysSessionSampleRate: isDev ? 1 : 0.1,
  replaysOnErrorSampleRate: 1.0,
  beforeBreadcrumb: excludeGraphQLFetch,
  ignoreErrors: [/^ResizeObserver.*/, /^AbortError.*/, 'Object Not Found Matching Id'],
  beforeSend(event) {
    if (event.exception?.values?.some(checkCancellationException)) {
      return null;
    }

    return event;
  },
});

Steps to Reproduce

Since 8.33.1 update we got new errors in the sentry 'The ReadableStream reader was released' with pointing to the sentry's code

# ../../node_modules/@sentry/utils/build/esm/instrument/fetch.js in resolveResponse at line 157:20

    responseReader.releaseLock();

Looks like the only browser that produces this error for us is Pale Moon 33.4.0

Expected Result

no error from the sentry library

Actual Result

(provided above)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions