0


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

问题概述:

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脚本,当网络出现问题时,下载出错可能就会连接失败。

#用户目录下ls ~/.vscode-server-insiders

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

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

ls ~/.vscode-server/

参考链接:
https://blog.csdn.net/qq_45654306/article/details/132047411

标签: vscode ssh 服务器

本文转载自: https://blog.csdn.net/m0_48941999/article/details/134554236
版权归原作者 我不是小哥哥 所有, 如有侵权,请联系我们删除。

“vscode-insiders Remote-SSH XHR failed无法访问远程服务器”的评论:

还没有评论