FastGithub icon indicating copy to clipboard operation
FastGithub copied to clipboard

dial tcp: lookup api.github.com fail

Open jackhuclan opened this issue 4 years ago • 6 comments

Bug描述 Bug的详细描述内容

Failed to get runtime version: 'Get "https://api.github.com/repos/dapr/dapr/releases": dial tcp: lookup api.github.com on 172.20.80.1:53: read udp 172.20.92.180:48594->172.20.80.1:53: i/o timeout'. Trying secondary source

软件信息

  • 操作系统: [e.g. win10-x64]
  • FastGithub: [e.g. v2.0.0]

jackhuclan avatar Nov 06 '21 00:11 jackhuclan

这个内容是哪个软件产生的

xljiulang avatar Nov 06 '21 01:11 xljiulang

@xljiulang https://docs.dapr.io/zh-hans/getting-started/install-dapr-selfhost/ https://github.com/dapr

运行: dapr init

jackhuclan avatar Nov 06 '21 02:11 jackhuclan

你试试v2.0.5,有修改过dns的udp包的出入方向。

xljiulang avatar Nov 06 '21 02:11 xljiulang

我就是用的v2.0.5,下载后解压,然后在windows下面运行FastGithub.UI.exe, 然后在Ubuntu子系统里面运行dapr init

jackhuclan avatar Nov 06 '21 02:11 jackhuclan

dapr应该是在容器里运行吧,容器如果想通过主机(windows)的fg2.0.x版本来访问github,会遇到dns和证书的问题。 标准的作法应该是先做一个容器运行fg的linux版本,然后在需要访问github的其它容器配置http和https代理到fg容器的ip:38457

xljiulang avatar Nov 06 '21 02:11 xljiulang

你也可以试试v1.2.x版本,这个版本在主机使用了dns服务,也许不会遇到类似的问题

xljiulang avatar Nov 06 '21 02:11 xljiulang