-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve error message for client without internet access #3349
Comments
I have attempted to remove ~/.vscode-server on the remote machine and retry. But it does not solve the problem. |
Remote OS bash version: 4.2.46(1)-release |
Remote OS glibc version: 2.17-157.el7_3.1 |
Local OS and Remote OS have NO access to the internet. Extension installed by vsix |
Home folder is on NFS. Read the issue #885. Enabled remote.SSH.lockfilesInTmp, but does not solve the problem |
Remote host Login shell is /bin/bash. Remove ~/.bashrc and ~/.bash_profile does not help |
Install wget from http://gnuwin32.sourceforge.net/packages/wget.htm, on the Host Windows OS. Not work |
Remove ~/.vscode, ~/.vscode-server and /run/user/$(id -u)/vscode*. Does not help |
The problem is related to no internet access. However, the error message is too confusing for me. I didn't realize that "Could not establish connection. XHR failed" is because downloading vscode-server from internet failed. Find the solution on https://stackoverflow.com/questions/56718453/using-remote-ssh-in-vscode-on-a-target-machine-that-only-allows-inbound-ssh-co/56781109#56781109 This works for me. |
Is this the same as #1242? |
This is the same as #1242, but the error message is too confusing, so it takes me a while to realize the root cause of the issue. I suggest to fix the broken error message first. |
just encountered this as well on an air-gapped machine. |
I had this exact issue after upgrading to |
As mentioned above, duplicate of #1242, but considering keeping open to address feedback about improved error message:
|
Sorry for bumping, but this is ridiculous. I had to put the proxies into /etc/wgetrc .... That was unexpected ... |
Also just dealt with this issue on a machine behind a corporate proxy. |
I improved the error message here, but it's still a bit generic because it's hard to know why we failed to download the vscode server. If someone has an example of the log output where this happened, I might be able to make it more specific. |
Steps to Reproduce:
The config file is similar to:
Host domain.com
HostName domain.com
User USERNAME
ForwardAgent yes
After a while, I get a error dialog "Could not establish connection to domain.com. XHR failed"
Does this issue occur when you try this locally?: Yes
Does this issue occur when you try this locally and all extensions are disabled?: All other extensions disabled except "Remote - SSH"
Currently I cannot provide /etc/ssh/sshd_config because it is readable by root only. If needed, I can get it by contacting the system admin.
The text was updated successfully, but these errors were encountered: