vscode: When upgrading to 1.85, remote ssh would report "XHR FAILED", while downgrading to 1.82 everything would be OK
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.85.0
- OS Version: win10 22H2
Steps to Reproduce:
- Install 1.85 windows x64 stable from official web
- Use remote ssh and it would fail. It would say “can’t connect to {ip}: XHR failed”. Below is the complete output
[11:28:08.865] Log Level: 2
[11:28:08.951] SSH Resolver called for "ssh-remote+10.2.23.88", attempt 1
[11:28:08.952] "remote.SSH.useLocalServer": false
[11:28:08.952] "remote.SSH.useExecServer": false
[11:28:08.952] "remote.SSH.showLoginTerminal": false
[11:28:08.952] "remote.SSH.remotePlatform": {"10.0.4.115":"linux","10.0.3.50":"linux","10.0.4.112":"linux","10.2.23.125":"linux","10.2.23.99":"linux","10.2.23.91":"linux","10.2.23.90":"linux","10.2.23.120":"linux","10.2.23.88":"linux","TargetMachine":"linux","10.2.23.100":"linux","10.2.23.121":"linux","10.2.23.135":"linux","10.1.23.203":"linux","10.2.23.136":"linux","10.2.23.204":"linux","10.2.23.138":"linux"}
[11:28:08.952] "remote.SSH.path": undefined
[11:28:08.952] "remote.SSH.configFile": undefined
[11:28:08.953] "remote.SSH.useFlock": true
[11:28:08.953] "remote.SSH.lockfilesInTmp": false
[11:28:08.953] "remote.SSH.localServerDownload": auto
[11:28:08.953] "remote.SSH.remoteServerListenOnSocket": false
[11:28:08.953] "remote.SSH.showLoginTerminal": false
[11:28:08.953] "remote.SSH.defaultExtensions": []
[11:28:08.954] "remote.SSH.loglevel": 2
[11:28:08.954] "remote.SSH.enableDynamicForwarding": true
[11:28:08.954] "remote.SSH.enableRemoteCommand": false
[11:28:08.954] "remote.SSH.serverPickPortsFromRange": {}
[11:28:08.954] "remote.SSH.serverInstallPath": {}
[11:28:08.957] VS Code version: 1.85.0
[11:28:08.957] Remote-SSH version: remote-ssh@0.107.1
[11:28:08.957] win32 x64
[11:28:08.959] SSH Resolver called for host: 10.2.23.88
[11:28:08.959] Setting up SSH remote "10.2.23.88"
[11:28:08.962] Using commit id "af28b32d7e553898b2a91af498b1fb666fdebe0c" and quality "stable" for server
[11:28:08.965] Install and start server if needed
[11:28:08.967] Checking ssh with "C:\Program Files\PlasticSCM5\server\ssh.exe -V"
[11:28:08.969] Got error from ssh: spawn C:\Program Files\PlasticSCM5\server\ssh.exe ENOENT
[11:28:08.969] Checking ssh with "C:\Program Files\PlasticSCM5\client\ssh.exe -V"
[11:28:08.971] Got error from ssh: spawn C:\Program Files\PlasticSCM5\client\ssh.exe ENOENT
[11:28:08.971] Checking ssh with "C:\Program Files\Common Files\Oracle\Java\javapath\ssh.exe -V"
[11:28:08.972] Got error from ssh: spawn C:\Program Files\Common Files\Oracle\Java\javapath\ssh.exe ENOENT
[11:28:08.972] Checking ssh with "C:\Windows\system32\ssh.exe -V"
[11:28:08.973] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT
[11:28:08.973] Checking ssh with "C:\Windows\ssh.exe -V"
[11:28:08.974] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT
[11:28:08.974] Checking ssh with "C:\Windows\System32\Wbem\ssh.exe -V"
[11:28:08.974] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT
[11:28:08.975] Checking ssh with "C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[11:28:08.975] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[11:28:08.975] Checking ssh with "C:\Windows\System32\OpenSSH\ssh.exe -V"
[11:28:09.004] > OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
[11:28:09.007] Running script with connection command: "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 52291 "10.2.23.88" bash
[11:28:09.010] Terminal shell path: C:\Windows\System32\cmd.exe
[11:28:09.229] > ]0;C:\Windows\System32\cmd.exe
[11:28:09.229] Got some output, clearing connection timeout
[11:28:09.315] > mon@10.2.23.88's password:
[11:28:09.316] Showing password prompt
[11:28:11.697] Got password response
[11:28:11.698] "install" wrote data to terminal: "********"
[11:28:11.717] >
[11:28:12.149] > 20d46933f1fc: running
[11:28:12.184] > Acquiring lock on /home/mon/.vscode-server/bin/af28b32d7e553898b2a91af498b1f
> b666fdebe0c/vscode-remote-lock.mon.af28b32d7e553898b2a91af498b1fb666fdebe0c
> Installing to /home/mon/.vscode-server/bin/af28b32d7e553898b2a91af498b1fb666
> fdebe0c...
> 20d46933f1fc%%1%%
> Downloading with wget
[11:28:12.206] > wget download failed
> Unable to establish SSL connection.
> printenv:
> SHELL=/bin/bash
> PWD=/home/mon/.vscode-server/bin/af28b32d7e553898b2a91af498b1fb666fdebe0
> c
> LOGNAME=mon
> XDG_SESSION_TYPE=tty
> MOTD_SHOWN=pam
> HOME=/home/mon
> LANG=en_US.UTF-8
> VSCODE_AGENT_FOLDER=/home/mon/.vscode-server
> SSH_CONNECTION=10.2.20.222 52292 10.2.23.88 22
> XDG_SESSION_CLASS=user
> USER=mon
> SHLVL=0
> XDG_SESSION_ID=2361
> XDG_RUNTIME_DIR=/run/user/1000
> SSH_CLIENT=10.2.20.222 52292 22
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
> :/usr/local/games:/snap/bin
> DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
> OLDPWD=/home/mon
> _=/usr/bin/printenv
> Trigger local server download
> 20d46933f1fc:trigger_server_download
> artifact==server-linux-x64==
> destFolder==/home/mon/.vscode-server/bin/==
> destFolder2==/af28b32d7e553898b2a91af498b1fb666fdebe0c/vscode-server.tar.gz==
> 20d46933f1fc:trigger_server_download_end
> Waiting for client to transfer server archive...
> Waiting for /home/mon/.vscode-server/bin/af28b32d7e553898b2a91af498b1fb666fd
> ebe0c/vscode-server.tar.gz.done and vscode-server.tar.gz to exist
[11:28:12.207] Got request to download on client for {"artifact":"server-linux-x64","destPath":"/home/mon/.vscode-server/bin//af28b32d7e553898b2a91af498b1fb666fdebe0c/vscode-server.tar.gz"}
[11:28:12.207] Downloading VS Code server locally...
[11:28:12.225] >
>
[11:28:12.337] Resolver error: Error: XHR failed
at k.onerror (vscode-file://vscode-app/c:/Users/c.men/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:95:2027)
[11:28:12.341] ------
[11:32:12.336] >
>
So I checked workbench.desktop.main.js
on line 95, col 2027
k.onerror=h=>g(navigator.onLine?new Error(k.statusText&&"XHR failed: "+k.statusText||"XHR failed"):new I.$0n),
col 2027 is from new Error
When I reinstall vscode version 1.82.1, and tried to use remote ssh, then everything worked well. I discovered this problem after my vscode upgraded itself, so I still have the older installing package. Now what I can do is to reinstall by version 1.82.1, and not let it upgrade itself.
About this issue
- Original URL
- State: closed
- Created 7 months ago
- Reactions: 12
- Comments: 24 (2 by maintainers)
@roblourens “on the way” means in the upcoming days(2-3)? Or next month? Just to know if worth it to do a downgrade or I can wait… And thank you a lot for the work fixing it! 😄
It’s in the next stable vscode release, which should be today
same issue. When set/reset Http: Proxy setting, it works. hope helpful.
Http: Proxy Support is override on my side.
yes, it’s a bit confusing, I just do {remove proxy, connect, set proxy, connet} several times, then it connected.
same issue VS Code Version: 1.85.0 OS Version: win11 22H2 Version 1.84.2 works perfectly.