Skip to content

fix(P4K): don't report scene websocket connect failures to Sentry#9421

Draft
eordano wants to merge 1 commit into
devfrom
chore/clean-ws-connect-noreport
Draft

fix(P4K): don't report scene websocket connect failures to Sentry#9421
eordano wants to merge 1 commit into
devfrom
chore/clean-ws-connect-noreport

Conversation

@eordano

@eordano eordano commented Jul 17, 2026

Copy link
Copy Markdown
Member

UNITY-EXPLORER-P4K (3010 evts/7 users): Utility.Networking.WebSocketException from scene JS connect(). WebSocketApiWrapper.ConnectAsync wrapped the call in .ReportAndRethrowException(exceptionsHandler), so every failed connection to a scene-supplied (dead/invalid) endpoint became a Sentry error — a scene retry loop produced thousands. The sibling SimpleFetchApiWrapper.Fetch deliberately does not report. Drop the report from connect only; ToDisconnectedPromise still rejects the scene's JS promise so its catch handler runs. Send/Receive/Close keep reporting. Report-noise reduction, not a functional bug. Unverified (no build).

fixes #8777


Supersedes #9407: moved from the fork into the org repo so CI workflows receive repository secrets (fork PRs do not).

UNITY-EXPLORER-P4K (3010 evts/7 users): Utility.Networking.WebSocketException
from scene JS connect(). WebSocketApiWrapper.ConnectAsync wrapped the call in
.ReportAndRethrowException(exceptionsHandler), so every failed connection to a
scene-supplied (dead/invalid) endpoint became a Sentry error — a scene retry
loop produced thousands. The sibling SimpleFetchApiWrapper.Fetch deliberately
does not report. Drop the report from connect only; ToDisconnectedPromise still
rejects the scene's JS promise so its catch handler runs. Send/Receive/Close
keep reporting. Report-noise reduction, not a functional bug. Unverified (no build).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>



Production evidence (decentraland Sentry, archive snapshot 2026-07-17):
- UNITY-EXPLORER-P4K: 94 events / 21 users, last seen 2026-07-15
- UNITY-EXPLORER-KG0: 11 events / 5 users, last seen 2026-03-15
@eordano
eordano requested review from a team as code owners July 17, 2026 13:35
@github-actions
github-actions Bot requested a review from anicalbano July 17, 2026 13:36
@decentraland-bot decentraland-bot added the ext-contribution Identifies a contribution which was not initiated by a Unity Developer label Jul 17, 2026
@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

badge

Build skipped — no changes detected under Explorer/.

@github-actions

Copy link
Copy Markdown
Contributor

Slack notification sent to #explorer-ext-contributions for external review.
To re-send, delete this comment and re-add the ext-contribution label.

@eordano

eordano commented Jul 17, 2026

Copy link
Copy Markdown
Member Author

Closed in favor of the compound PR #9430 (team decision — all fixes in this set land and iterate there; each fix remains individually reviewable as its own merge commit in #9430).

@eordano eordano closed this Jul 17, 2026
@eordano eordano reopened this Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ext-contribution Identifies a contribution which was not initiated by a Unity Developer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Utility.Networking.WebSocketException: Exception of type 'Utility.Networking.WebSocketException' was thrown.

2 participants