vscode-insiders Remote-SSH XHR failed无法访问远程服务器

问题概述:

bash 复制代码
destFolder==/home/apple/.vscode-server-insiders==
> destFolder2==/vscode-cli-05cd2640ec8a106a4ee99cb38e6ee34fbec04f11.tar.gz==      
> 194f252f7426:trigger_server_download_end
> Waiting for client to transfer server archive...
> Waiting for /home/apple/.vscode-server-insiders/vscode-cli-05cd2640ec8a10
> 6a4ee99cb38e6ee34fbec04f11.tar.gz.done and vscode-server.tar.gz to exist        
> 
[14:58:38.277] Got request to download on client for {"artifact":"cli-alpine-x64","destPath":"/home/apple/.vscode-server-insiders/vscode-cli-05cd2640ec8a106a4ee99cb38e6ee34fbec04f11.tar.gz"}
[14:58:38.277] Downloading VS Code server locally...
[14:58:39.380] Resolver error: Error: XHR failed
    at k.onerror (vscode-file://vscode-app/e:/Microsoft%20VS%20Code%20Insiders/resources/app/out/vs/workbench/workbench.desktop.main.js:95:2027)
[14:58:39.384] ------

在连接远程服务器时,会在服务器端自动运行一个vscode-server脚本,当网络出现问题时,下载出错可能就会连接失败。

bash 复制代码
#用户目录下
ls ~/.vscode-server-insiders

看到目录下有该文件,但是解压缩时出错。说明文件本身有问题,但是由于已经存在该文件所以不会重新下载。因此删除该文件,重新打开vscode,会自动下载文件,连接成功

对于稳定版本,可以打开查看:

bash 复制代码
ls ~/.vscode-server/

参考链接:

https://blog.csdn.net/qq_45654306/article/details/132047411

相关推荐
cuijiecheng20182 小时前
Linux下Beyond Compare过期
linux·运维·服务器
期待のcode3 小时前
前后端分离项目 Springboot+vue 在云服务器上的部署
服务器·vue.js·spring boot
AI 智能服务3 小时前
第6课__本地工具调用(文件操作)
服务器·人工智能·windows·php
松涛和鸣6 小时前
49、智能电源箱项目技术栈解析
服务器·c语言·开发语言·http·html·php
凉、介6 小时前
SylixOS 中的 Unix Socket
服务器·c语言·笔记·学习·嵌入式·sylixos
RisunJan6 小时前
Linux命令-ipcs命令(报告进程间通信(IPC)设施状态的实用工具)
linux·运维·服务器
HABuo7 小时前
【Linux进程(四)】进程切换&环境变量深入剖析
linux·运维·服务器·c语言·c++·ubuntu·centos
wzfj123457 小时前
vscode通过remote-ssh快速浏览远程pc的文件
vscode
橘颂TA7 小时前
【Linux】死锁四条件的底层逻辑:从锁冲突到 STL 组件的线程安全实践(Ⅵ)
linux·运维·服务器·c++·死锁