decentraland / decentraland/unity-explorer
System.Net.WebSockets.WebSocketException: Unable to connect to the remote server
- Dominant language
- C#
- Stars
- 23
- Forks
- 17
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 101
Description
Sentry Issue: [UNITY-EXPLORER-PST](https://decentraland.sentry.io/issues/7692018482/)
```
System.Net.Sockets.SocketException: mono-io-layer-error (61)
Module "System.Net.Sockets.SocketAsyncResult", in CheckIfThrowDelayedException
Module "System.Net.Sockets.Socket+<>c", in ConnectAsync { }
Module "System.Threading.ThreadPoolWorkQueue", in Dispatch
Module "System.Runtime.CompilerServices.TaskAwaiter", in ThrowForNonSuccess
Module "System.Net.WebSockets.WebSocketHandle", in ConnectSocketAsync
...
(47 additional frame(s) were not displayed)
System.Net.WebSockets.WebSocketException: Unable to connect to the remote server
Module "System.Net.WebSockets.WebSocketHandle", in ConnectAsyncCore
Module "System.Threading.ExecutionContext", in RunInternal
Module "System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner", in Run
Module "System.Threading.Tasks.AwaitTaskContinuation", in RunOrScheduleAction
Module "System.Threading.Tasks.Task", in FinishContinuations
...
(49 additional frame(s) were not displayed)
System.AggregateException: One or more errors occurred.
File "/opt/workspace/workspace/a065372e-0c5f-4536-0000-0440104d155d.8c1273e985o/Explorer/Assets/DCL/Infrastructure/Utility/Networking/DCLWebSocket.cs", line 100, in ConnectAsync
File "/opt/workspace/workspace/a065372e-0c5f-4536-0000-0440104d155d.8c1273e985o/Explorer/Assets/DCL/Infrastructure/SceneLifeCycle/LocalSceneDevelopment/LocalSceneDevelopmentController.cs", line 60, in ConnectToServerAsync
File "/opt/workspace/workspace/a065372e-0c5f-4536-0000-0440104d155d.8c1273e985o/Explorer/Assets/DCL/Infrastructure/Utility/Networking/DCLWebSocket.cs", line 105, in ConnectAsync
File "/opt/workspace/workspace/a065372e-0c5f-4536-0000-0440104d155d.8c1273e985o/Explorer/Assets/DCL/Infrastructure/SceneLifeCycle/LocalSceneDevelopment/LocalSceneDevelopmentController.cs", line 49, in ConnectToServerAsync
File "/opt/workspace/workspace/a065372e-0c5f-4536-0000-0440104d155d.8c1273e985o/Explorer/Assets/DCL/Infrastructure/SceneLifeCycle/LocalSceneDevelopment/LocalSceneDevelopmentController.cs", line 64, in ConnectToServerAsync
...
(108 additional frame(s) were not displayed)
```
This issue was automatically created by Sentry via [Explorer Alpha Github Issue Creation](https://sentry.io/organizations/decentraland/monitors/alerts/3130340/)
Contributor guide
Research direction
Start with Assets/DCL/Infrastructure/Utility/Networking/DCLWebSocket.cs at ConnectAsync and trace its callers in LocalSceneDevelopmentController.cs at the reported lines. Reproduce or characterize the connection failure, then determine a verifiable handling or correction and cover it with the relevant test if one exists.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, unity
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100