GitHub release下载错误 #53
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
GitHub release下载出现错误:server error Get "https://github.com/AstrBotDevs/AstrBot/releases/download/v3.5.7/dist.zip": EOF
使用一键脚本安装,未修改配置文件,nginx反向代理配置如下:
` location ^~ / {
proxy_pass http://127.0.0.1:5000/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_set_header Connection "keep-alive";
日志如下(IP已做修改处理):
Aug 02 06:26:09 148e0be hubproxy[564660]: 请求IP: 1.1.1.1 (提纯后: 1.1.1.1), X-Forwarded-For: 1.1.1.1, X-Real-IP: 1.1.1.1 Aug 02 06:26:09 148e0be hubproxy[564660]: [GIN] 2025/08/02 - 06:26:09 | 500 | 142.034737ms | 119.137.1.255 | GET "/https:/github.com/AstrBotDevs/AstrBot/releases/download/v3.5.7/dist.zip"是最新版本吗?更新一下最新版本试试
问题没有得到解决
`
Aug 02 06:37:44 148e0be hubproxy[568973]: HubProxy 启动成功
Aug 02 06:37:44 148e0be hubproxy[568973]: 监听地址: 0.0.0.0:5000
Aug 02 06:37:44 148e0be hubproxy[568973]: 限流配置: 500请求/3小时
Aug 02 06:37:44 148e0be hubproxy[568973]: 版本号: v1.1.6
Aug 02 06:37:44 148e0be hubproxy[568973]: 项目地址: https://github.com/sky22333/hubproxy
Aug 02 06:37:55 148e0be hubproxy[568973]: 请求IP: 1.1.1.1 (提纯后: 1.1.1.1), X-Forwarded-For: 1.1.1.1, X-Real-IP: 1.1.1.1
Aug 02 06:37:55 148e0be hubproxy[568973]: [GIN] 2025/08/02 - 06:37:55 | 500 | 120.500507ms | 1.1.1.1 | GET "/https:/github.com/AstrBotDevs/AstrBot/releases/download/v3.5.7/dist.zip"
`
以下是我搭建的服务的连接:https://ghproxy.16181917.xyz/
你在搭建镜像的服务器里,先使用
wget 127.0.0.1:5000/https:/github.com/AstrBotDevs/AstrBot/releases/download/v3.5.7/dist.zip测试下,看看能不能成功下载,如果不能则再提供一下日志,谢谢wget能直接拉到
那可能你nginx反代配置有问题,估计跟URL标准化之类的有关,你试试反代地址结尾不加斜杠
/试试依据日志,修改反代配置,但是问题依旧,另一个项目可以使用。目前服务端获取的URL已恢复正常:server error Get "https://github.com/AstrBotDevs/AstrBot/releases/download/v3.5.7/dist.zip": EOF
加一下TG群我帮你看看吧
https://t.me/hubproxy12345
我试了下,只有宝塔的反代功能会复现此问题,其他都是正常的
我没有使用宝塔,我发现我配置文件有个地方存在请求头重写冲突,已修正问题