前言

先说原因,由于国内是禁止访问一些站点的情况下(国情如此),导致vscode无法访问到对应的api请求服务,所以导致一直启动不起来,得到的错误基本上都是:

warn Error connecting to relay, will retry: error connecting to tunnel: websocket error: IO error: 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。 (os error 10060)

即便我们使用clash做代理处理,但是由于这是终端的请求,普通的代理方式已经不管用了,而通过一些命令处理,比如:

CMD

set https_proxy=http://127.0.0.1:8889
set http_proxy=http://127.0.0.1:8889
set all_proxy=socks5://127.0.0.1:8889

这种方式都是只针对当前打开的终端,如果新建一个新的终端窗口,是无效的,而且关闭了终端也会导致失效,这只是一种临时的方案,也不适用我们的情况。

教程

此处内容已隐藏回复后方可阅读。

分类: 教程 标签: vscode代理端口转发内网穿透

评论

全部评论 28

  1. 123123
    123123
    Google Chrome Windows 10
    u安徽省发生
  2. 1
    1
    Google Chrome Windows 10
    看看看看看看看看
  3. 11
    11
    Google Chrome MacOS
    结局方法
  4. ds
    ds
    Google Chrome Windows 10
    ????解决方法呢???
  5. 阿达
    阿达
    Google Chrome Windows 10
    怎么解决?
  6. 三大爸
    三大爸
    Google Chrome Windows 10

    牢唐!
    队危,速归!

    1. 木灵鱼儿
      木灵鱼儿
      FireFox Windows 10
      @三大爸[热词系列_啊?]
  7. kk
    kk
    Google Chrome Windows 10
    ?》d额s

目录