microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.41k stars 29.33k forks source link

WebSocket close with status code 1006 #232164

Open GustavoRochaSantos opened 3 weeks ago

GustavoRochaSantos commented 3 weeks ago

Does this issue occur when all extensions are disabled?: Yes

At the beggining of this week, i was working perfectly with vscode, but with no cause, the VSCode stopped to coonect with my WSL server. Others tools like VSCodium works, just VSCode dont connect and throw the error WebSocket close with status code 1006. Anyone is passing through this?

Steps to reproduce:

  1. open wsl
  2. type code .

Logs:

INFO Invoking resolveAuthority(wsl)...
INFO [LocalProcess0][resolveAuthority(wsl,1)][0ms] obtaining proxy...   workbench.desktop.main.js:624
INFO [LocalProcess0][resolveAuthority(wsl,1)][0ms] invoking...   workbench.desktop.main.js:624  
INFO [LocalProcess0][resolveAuthority(wsl,1)][1003ms] waiting...   workbench.desktop.main.js:624  
INFO [LocalProcess0][resolveAuthority(wsl,1)][2038ms] waiting...  workbench.desktop.main.js:624  
INFO [LocalProcess0][resolveAuthority(wsl,1)][2299ms] returned WebSocket(127.0.0.1:54159)   workbench.desktop.main.js:624  
INFO resolveAuthority(wsl) returned 'WebSocket(127.0.0.1:54159)' after 2300 workbench.desktop.main.js:624  
INFO Creating a socket (renderer-Management-0ba9a81c-52aa-4933-a1b0-ea4865902390)... workbench.desktop.main.js:624  
INFO Creating a socket (renderer-ExtensionHost-25c9d341-d7fd-4a71-9df8-f5129556ac9f)... workbench.desktop.main.js:656 
WebSocket connection to 'ws://127.0.0.1:54159/stable-695af097c7bd098fbf017ce3ac85e09bbc5dda06?reconnectionToken=0ba9a81c-52aa-4933-a1b0-ea4865902390&reconnection=false&skipWebSocketFrames=false' failed: b @ workbench.desktop.main.js:656
INFO Creating a socket (renderer-Management-0ba9a81c-52aa-4933-a1b0-ea4865902390) returned an error after 420 ms.
workbench.desktop.main.js:624   
ERR CodeExpectedError: WebSocket close with status code 1006  at WebSocket.<anonymous> (workbench.desktop.main.js:656:3111)
aeschli commented 2 weeks ago

Can you add the WSL log as well? Command WSL: Show Log...