You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two unhandled production browser errors appeared in Sentry overnight on the same Sea Saba deployment/release:
08da3607d6825def3e9c11240e0ad9c9050148dc
Both occurred on https://www.seasaba.com/ and both appear inside the Next.js/Turbopack/Sentry client bootstrap path rather than Sea Saba application code.
Event 1
InvariantError: Invariant: Expected document.currentScript to be a <script> element. Received null instead. This is a bug in Next.js.
Characteristics:
environment: production
platform: browser/javascript
mechanism: unhandled promise rejection
stack dominated by Turbopack runtime chunks
unsymbolicated
release: 08da3607...
Event 2
TypeError: WeakMap keys must be objects or non-registered symbols
Characteristics:
environment: production
platform: browser/javascript
mechanism: unhandled promise rejection
stack passes through Turbopack runtime and Sentry client integration setup
unsymbolicated
release: 08da3607...
Sentry privacy controls appear to be working; no unexpected customer PII observed
Goal
Determine whether these are:
a Next.js/Turbopack framework bug,
a Sentry + Next.js/Turbopack integration bug,
a browser-specific issue,
an application-triggered defect,
or some combination.
Do not suppress or ignore these events until the cause is understood.
Investigation
Inspect the exact deployed commit/release and current package versions.
At minimum:
correlate both events to the deployment represented by release 08da3607...
inspect Next.js, React, Turbopack and @sentry/nextjs versions used by that release
identify browser/user-agent information retained by Sentry for both events if available
determine whether both events are Safari/WebKit-specific or cross-browser
search current upstream Next.js and Sentry issue trackers for the exact error signatures
inspect whether these errors reproduce against a local/production build
test repeated page loads/navigation in Chromium and WebKit
inspect whether Sentry initialization timing contributes to either failure
inspect whether instrumentation-client.ts, Next.js bootstrapping, or dynamic import/chunk registration is involved
If a dependency update is recommended, explain exactly which upstream issue/changelog supports it and why.
Source-map context
Issue #130 remains separate and will improve future symbolication.
Current events are unsymbolicated and show js_no_source / bundled _next/static chunks. This investigation should work with the evidence currently available, while recording anything #130 should help clarify later.
Acceptance criteria
Exact deployment/commit correlated.
Browser scope identified as far as available evidence allows.
Upstream Next.js/Sentry issues checked for both exact signatures.
Reproduction attempted in both Chromium and WebKit.
Determination made whether Sea Saba code is implicated.
Determination made whether Sentry initialization is implicated.
Recommended remediation is evidence-based.
No blanket suppression.
If no safe fix is available, document monitoring criteria and when to escalate.
Final report
Report:
base/head/branch/PR if code changes are needed
exact package versions
deployment/release correlation
browser/user-agent findings
upstream issues found, with links
reproduction results
root-cause assessment
whether the issue appears customer-visible
whether Sentry itself contributes
whether a dependency update is warranted
exact remediation performed or recommended
validation results
whether any Sentry ignore rule was added (expected: no, unless strongly justified)
Problem
Two unhandled production browser errors appeared in Sentry overnight on the same Sea Saba deployment/release:
08da3607d6825def3e9c11240e0ad9c9050148dcBoth occurred on
https://www.seasaba.com/and both appear inside the Next.js/Turbopack/Sentry client bootstrap path rather than Sea Saba application code.Event 1
InvariantError: Invariant: Expected document.currentScript to be a <script> element. Received null instead. This is a bug in Next.js.Characteristics:
08da3607...Event 2
TypeError: WeakMap keys must be objects or non-registered symbolsCharacteristics:
08da3607...Goal
Determine whether these are:
Do not suppress or ignore these events until the cause is understood.
Investigation
Inspect the exact deployed commit/release and current package versions.
At minimum:
08da3607...@sentry/nextjsversions used by that releaseinstrumentation-client.ts, Next.js bootstrapping, or dynamic import/chunk registration is involved@sentry/nextjsaddresses either signatureUse authoritative upstream sources where possible.
Important boundaries
If a dependency update is recommended, explain exactly which upstream issue/changelog supports it and why.
Source-map context
Issue #130 remains separate and will improve future symbolication.
Current events are unsymbolicated and show
js_no_source/ bundled_next/staticchunks. This investigation should work with the evidence currently available, while recording anything #130 should help clarify later.Acceptance criteria
Final report
Report:
If investigation finds no code change is justified, do not create a PR solely to create activity. Document the findings on the issue instead.