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

相关推荐
m0_7381207242 分钟前
应急响应——知攻善防Web-3靶机详细教程
服务器·前端·网络·安全·web安全·php
Danileaf_Guo6 小时前
256台H100服务器算力中心的带外管理网络建设方案
运维·服务器
拾贰_C8 小时前
【Linux | Windows | Terminal Command】 Linux---grep | Windows--- findstr
linux·运维·服务器
alengan9 小时前
linux上面写python3日志服务器
linux·运维·服务器
小卒过河010410 小时前
使用apache nifi 从数据库文件表路径拉取远程文件至远程服务器目的地址
运维·服务器·数据库
土星云SaturnCloud11 小时前
液冷“内卷”:在局部优化与系统重构之间,寻找第三条路
服务器·人工智能·ai·计算机外设
Trouvaille ~11 小时前
【Linux】理解“一切皆文件“与缓冲区机制:Linux文件系统的设计哲学
linux·运维·服务器·操作系统·进程·文件·缓冲区
FIT2CLOUD飞致云13 小时前
操作教程丨通过1Panel快速安装Zabbix,搭建企业级监控系统
运维·服务器·开源·zabbix·监控·1panel
幸存者letp13 小时前
Python 常用方法分类大全
linux·服务器·python