microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.65k stars 285 forks source link

Remote-WSL could not fetch remote environment and websocket close with status code 1006. #5314

Open yao-yin opened 3 years ago

yao-yin commented 3 years ago

Tried many methods in this issue, but nothing helps.

saguerraty commented 3 years ago

I was having the same issue with Ubuntu 20.04 and wsl2. uninstalling all remote related extensions -> reloading vs code -> reinstalling remote - wsl extension seems to have solved the issue, my best guess is that it had something to do with changes in the extension (since it appeared after a reboot) .

yao-yin commented 3 years ago

I was having the same issue with Ubuntu 20.04 and wsl2. uninstalling all remote related extensions -> reloading vs code -> reinstalling remote - wsl extension seems to have solved the issue, my best guess is that it had something to do with changes in the extension (since it appeared after a reboot) .

Thank you for your comments, tried but still not work.

neko-para commented 3 years ago

I've met this problem too. I use wsl --shutdown to reboot the archlinux and then it works.

neko-para commented 3 years ago

This problem appear again after I reboot my windows. Maybe it has sth. to do with the booting of WSL.

ShortArrow commented 2 months ago

I faced the same error message. I am using wsl2 archlinux.

This probably occurs when docker build is heavy.

First, run the docker build command and archlinux becomes unresponsive.

Then the error above occurs and VSCode cannot connect to archlinux.

The following is what I did after that.