FastGithub icon indicating copy to clipboard operation
FastGithub copied to clipboard

linux系统无法访问raw.githubusercontent.com域名下的静态文件

Open yzqdev opened this issue 2 years ago • 5 comments

Bug描述

偶发性问题

使用fastgithub时,linux有时出现无法访问github仓库的静态文件,图片,字体,等等(来自raw.githubusercontent.com域名的静态文件)的情况,,同一个网络下的Windows从未出现此问题

访问github的静态图片,结果无法显示

2022-02-28 20-11-39屏幕截图 2022-02-28 20-11-56屏幕截图 2022-02-28 20-27-11屏幕截图

重现步骤

  1. 运行fastgithub(sudo ./fastgithub直接运行或者sudo ./fastgithub start以服务方式运行)
  2. 访问本仓库静态图片
  3. 图片无法正常显示

软件信息

  • 操作系统: linuxmint 20.3(基于ubuntu Focal ,linux kernel 5.4.0)
  • FastGithub: v2.1.4

yzqdev avatar Feb 28 '22 12:02 yzqdev

有解吗? 还是只能通过修改host?

crazy-canux avatar Mar 29 '22 13:03 crazy-canux

看上去,curl没有获得https_proxy环境变量的代理值。

xljiulang avatar Mar 29 '22 13:03 xljiulang

卧槽,你咋知道我用的curl

crazy-canux avatar Mar 29 '22 13:03 crazy-canux

终端配一下proxy就可以了。

crazy-canux avatar Mar 29 '22 13:03 crazy-canux

终端配一下proxy就可以了。

我在/etc/profile里面配的代理:

export http_proxy=http://127.0.0.1:38457

export https_proxy=http://127.0.0.1:38457

不过这个问题有时候出现,有时候不出现,也有可能是github的问题

yzqdev avatar Mar 29 '22 13:03 yzqdev