Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]HTTP代理502错误 #514

Closed
1 of 2 tasks
Cryghast opened this issue Feb 15, 2025 · 2 comments
Closed
1 of 2 tasks

[Bug]HTTP代理502错误 #514

Cryghast opened this issue Feb 15, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@Cryghast
Copy link

Cryghast commented Feb 15, 2025

发生了什么

无法使用HTTP代理功能,报错502。

如果说这个功能本意不是允许LLM访问一些被墙的网站的信息,那就当我没说。但是谷歌在国内确实连不上

如何复现?

astrbot和clash在同一台机上运行,打开Clash,启用系统代理,允许局域网接入,端口默认7890,bot HTTP设定填写http://127.0.0.1:7890

保存后打任何字给大模型都会返回502错误,必须关闭clash,清除HTTP代理后关闭运行窗口彻底重启才能恢复正常。

AstrBot 版本与部署方式

Windows启动器 v3.4.27

操作系统

Windows

额外信息

Image

你愿意提交 PR 吗?

  • 是的,我愿意提交 PR!

Code of Conduct

@Cryghast Cryghast added the bug Something isn't working label Feb 15, 2025
@Soulter
Copy link
Owner

Soulter commented Feb 16, 2025

这个问题是由于代理服务器(clash)尝试将本地请求(localhost:1234)转发到外部网络,而不是直接访问本地服务导致的。解决办法是添加
no_proxy 环境变量。新版本将会为程序自动添加这个环境变量。

@Soulter
Copy link
Owner

Soulter commented Feb 19, 2025

新版本应该已经能够解决这个问题

@Fridemn Fridemn closed this as completed Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants