Skip to content

fix(sdk): Filter 'ServiceWorker cannot be started' errors#120606

Open
sentry[bot] wants to merge 1 commit into
masterfrom
seer/fix/filter-sw-cannot-be-started
Open

fix(sdk): Filter 'ServiceWorker cannot be started' errors#120606
sentry[bot] wants to merge 1 commit into
masterfrom
seer/fix/filter-sw-cannot-be-started

Conversation

@sentry

@sentry sentry Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Chrome Mobile can emit a TypeError: Failed to update a ServiceWorker ... ServiceWorker cannot be started error when updating a service worker, often due to storage or environmental constraints. This error is typically benign and unactionable from an application perspective.

The Sentry SDK's ignoreErrors configuration in initializeSdk.tsx already includes a regex to filter similar noisy ServiceWorker errors (e.g., 'load failed', 'error during installation', 'unsupported MIME type'). This change extends that existing regex to also match the 'cannot be started' variant, preventing these non-critical errors from being reported as issues in Sentry.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

Fixes JAVASCRIPT-3AXJ

Comment @sentry <feedback> on this PR to have Autofix iterate on the changes.

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jul 24, 2026
@ryan953
ryan953 marked this pull request as ready for review July 25, 2026 15:27
@ryan953
ryan953 requested review from a team as code owners July 25, 2026 15:27
@ryan953
ryan953 requested review from chargome, logaretm, msonnb and nicohrubec and removed request for a team July 25, 2026 15:27
@ryan953 ryan953 added the Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests label Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant