GitHub release下载错误 #53

Closed
opened 2025-08-02 13:32:19 +08:00 by win-syswow64 · 10 comments
win-syswow64 commented 2025-08-02 13:32:19 +08:00 (Migrated from github.com)

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";

add_header X-Cache $upstream_cache_status;

# Set Nginx Cache
set $static_fileCyEjPNB3 0;
if ( $uri ~* "\.(gif|png|jpg|css|js|woff|woff2)$" ) {
    set $static_fileCyEjPNB3 1;
    expires 1m;
}
if ( $static_fileCyEjPNB3 = 0 ) {
    add_header Cache-Control no-cache;
}
}`

日志如下(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"

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"; add_header X-Cache $upstream_cache_status; # Set Nginx Cache set $static_fileCyEjPNB3 0; if ( $uri ~* "\.(gif|png|jpg|css|js|woff|woff2)$" ) { set $static_fileCyEjPNB3 1; expires 1m; } if ( $static_fileCyEjPNB3 = 0 ) { add_header Cache-Control no-cache; } }` 日志如下(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"`
sky22333 commented 2025-08-02 13:35:55 +08:00 (Migrated from github.com)

是最新版本吗?更新一下最新版本试试

是最新版本吗?更新一下最新版本试试
win-syswow64 commented 2025-08-02 13:40:07 +08:00 (Migrated from github.com)

问题没有得到解决
`
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"

`

问题没有得到解决 ` 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" `
win-syswow64 commented 2025-08-02 13:41:10 +08:00 (Migrated from github.com)

以下是我搭建的服务的连接:https://ghproxy.16181917.xyz/

以下是我搭建的服务的连接:https://ghproxy.16181917.xyz/
sky22333 commented 2025-08-02 14:15:36 +08:00 (Migrated from github.com)

你在搭建镜像的服务器里,先使用wget 127.0.0.1:5000/https:/github.com/AstrBotDevs/AstrBot/releases/download/v3.5.7/dist.zip测试下,看看能不能成功下载,如果不能则再提供一下日志,谢谢

你在搭建镜像的服务器里,先使用`wget 127.0.0.1:5000/https:/github.com/AstrBotDevs/AstrBot/releases/download/v3.5.7/dist.zip`测试下,看看能不能成功下载,如果不能则再提供一下日志,谢谢
win-syswow64 commented 2025-08-02 14:34:35 +08:00 (Migrated from github.com)

wget能直接拉到

wget能直接拉到
sky22333 commented 2025-08-02 14:43:04 +08:00 (Migrated from github.com)

那可能你nginx反代配置有问题,估计跟URL标准化之类的有关,你试试反代地址结尾不加斜杠/试试

那可能你nginx反代配置有问题,估计跟URL标准化之类的有关,你试试反代地址结尾不加斜杠`/`试试
win-syswow64 commented 2025-08-02 14:48:05 +08:00 (Migrated from github.com)

依据日志,修改反代配置,但是问题依旧,另一个项目可以使用。目前服务端获取的URL已恢复正常:server error Get "https://github.com/AstrBotDevs/AstrBot/releases/download/v3.5.7/dist.zip": EOF

依据日志,修改反代配置,但是问题依旧,另一个项目可以使用。目前服务端获取的URL已恢复正常:server error Get "https://github.com/AstrBotDevs/AstrBot/releases/download/v3.5.7/dist.zip": EOF
sky22333 commented 2025-08-02 15:02:54 +08:00 (Migrated from github.com)

加一下TG群我帮你看看吧
https://t.me/hubproxy12345

加一下TG群我帮你看看吧 https://t.me/hubproxy12345
sky22333 commented 2025-08-03 18:36:35 +08:00 (Migrated from github.com)

我试了下,只有宝塔的反代功能会复现此问题,其他都是正常的

我试了下,只有宝塔的反代功能会复现此问题,其他都是正常的
win-syswow64 commented 2025-08-04 14:29:16 +08:00 (Migrated from github.com)

我没有使用宝塔,我发现我配置文件有个地方存在请求头重写冲突,已修正问题

我没有使用宝塔,我发现我配置文件有个地方存在请求头重写冲突,已修正问题
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 3344/hubproxy#53