triwinds / ns-emu-tools

一个用于安装/更新 NS 模拟器的工具
GNU Affero General Public License v3.0
4.22k stars 150 forks source link

aria下载的问题 #21

Closed Tacrine closed 1 year ago

Tacrine commented 1 year ago

报错,代码为1 2023-01-27 18:12:45.135990 [INFO] [rpc_helper.cc:103] Executing RPC method aria2.tellStatus 2023-01-27 18:12:45.136990 [INFO] [AbstractHttpServerResponseCommand.cc:117] CUID#691 - HttpServer: all response transmitted. 2023-01-27 18:12:45.136990 [INFO] [HttpServerResponseCommand.cc:60] CUID#691 - Persist connection. 2023-01-27 18:12:45.136990 [INFO] [HttpServerCommand.cc:272] CUID#690 - Error occurred while reading HTTP request Exception: [HttpServer.cc:180] errorCode=1 Got EOF from peer. 2023-01-27 18:12:45.136990 [INFO] [HttpServerCommand.cc:272] CUID#691 - Error occurred while reading HTTP request Exception: [HttpServer.cc:180] errorCode=1 Got EOF from peer.

triwinds commented 1 year ago

这个是因为 aria2p 在调用 jsonrpc 时请求头设置有点问题,不是出问题的根本原因。

ns-emu-tools.log 里面找找 info.error_code,这个才是 aria2 下载出问题时返回的 error code,看看这个 error code 写的是什么?

Tacrine commented 1 year ago

2023-01-27 17:41:35.220|ERROR|module.downloader|downloader.py:92|download|info.error_code: 2, error message: Timeout. 2023-01-27 17:41:35.220|ERROR|api.common_response|common_response.py:14|exception_response|下载出错, error_code: 2, error message: Timeout. Traceback (most recent call last): File "api\yuzu_api.py", line 60, in install_yuzu File "module\yuzu.py", line 103, in install_yuzu File "module\yuzu.py", line 67, in install_ea_yuzu File "module\yuzu.py", line 44, in download_yuzu File "module\downloader.py", line 93, in download RuntimeError: 下载出错, error_code: 2, error message: Timeout. ns-emu-tools.log

Tacrine commented 1 year ago

这是墙的问题吧

triwinds commented 1 year ago

有可能,设置里换个下载源或者挂个梯子再试试吧。

Tacrine commented 1 year ago

其他下载源都试过了,没用。另外下载源都是cf的cdn,其实也都一样,我挂个梯子试试。

triwinds commented 1 year ago

https://ping.chinaz.com/nsarchive.e6ex.com https://ping.chinaz.com/proxy.zyun.vip

看起来大部分地区访问都是正常的,可能是 dns 给你的 ip 无法访问或者是你的网络有一些限制。 过段时间我试试集成一下 CloudflareST,看看能不能解决这个问题。

Tacrine commented 1 year ago

感谢大佬

Tacrine commented 1 year ago

我是福建电信的网络,dns修改为阿里的,目前可以了

Tacrine commented 1 year ago

我用的是edge浏览器,浏览器自动用电信提供的dns,我手动修改后就好了