Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ public object ConnectAsync(int websocketId, string url)
if (!isLocalSceneDevelopment && !url.ToLower().StartsWith("wss://"))
throw new Exception("Can't start an unsafe ws connection, please upgrade to wss. url=" + url);

return api.ConnectAsync(websocketId, url, disposeCts.Token).ReportAndRethrowException(exceptionsHandler).ToDisconnectedPromise(this);
// A failed connection to a scene-supplied endpoint is a scene-content problem, not an
// explorer defect, so it must NOT be reported to Sentry as an error (it spammed
// UNITY-EXPLORER-P4K with thousands of events). ToDisconnectedPromise still rejects the
// scene's JS connect() promise, matching how SimpleFetchApiWrapper.Fetch surfaces failures.
return api.ConnectAsync(websocketId, url, disposeCts.Token).ToDisconnectedPromise(this);
}
catch (Exception e)
{
Expand Down
Loading