tg上传图片成功后,但是访问不到 #505
|
配置的TG上传成功了,tg里面也可以看到了,页面也返回成功了,但是图片就是访问不了,接口一直是500返回。返回的信息是Error: Failed to fetch image。 切换回2.2.5版本就正常 |
Answered by
MarSeventh
Mar 24, 2026
Replies: 5 comments 4 replies
|
检查一下机器人权限,和channel ID配置 |
2 replies
|
cf部署的吗,检查域名设置吧 |
1 reply
|
那就是你nginx配置的问题,你可以参考一下我的: location / {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-NginX-Proxy true;
real_ip_header X-Real-IP;
proxy_connect_timeout 300;
proxy_http_version 1.1;
proxy_pass http://127.0.0.1:7658;
} |
0 replies
Answer selected by
caiyaonan
|
我也遇到了这个问题,通过代理URL已经上传成功了,但是获取一直失败;我还没有绑定域名,是直接ip:端口访问的,请问如何解决? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

那就是你nginx配置的问题,你可以参考一下我的: