#1786 For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502

58.152* Posted at: 3 days ago 👁33

The upstream Gradio app has raised an exception: Server error '502 Bad Gateway' for url 'http://127.0.0.1:7860/gradio_api/upload'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502


=
system:Windows-10-10.0.26100-SP0
version:v3.86
frozen:True
language:zh
root_dir:D:/Ai/Tea/sp/win-pyvideotrans-v3.86

1 Replies

这个错误表明 pyVideoTrans 在尝试连接本地部署的 Gradio 服务(地址为 http://127.0.0.1:7860)时失败,提示“502 Bad Gateway”。这通常是因为您配置了使用本地部署的模型(如 GPT-SoVITS、ChatTTS 或某些本地 LLM 翻译模型),但对应的服务没有启动或无法访问。

请按以下步骤排查:

  1. 检查服务是否运行

    • 确认您是否在本地启动了如 GPT-SoVITS、ChatTTS 或 LibreTranslate 等服务。
    • 打开浏览器,访问 http://127.0.0.1:7860,看是否能正常打开对应的 Web 界面。如果打不开,说明服务未启动。
  2. 检查 pyVideoTrans 配置

    • 在 pyVideoTrans 主界面,检查 第5行“网络代理”菜单栏 -> 工具 -> 设置 中,是否填写了 http://127.0.0.1:7860 作为代理地址。
    • 如果您的翻译或配音并不依赖此本地服务,请将相关设置中的地址清空或改为正确的 API 地址。
  3. 重启服务

    • 如果确实需要该本地服务,请确保先正确启动它(例如,运行 GPT-SoVITS 的 api.py 或启动相应的 Docker 容器),待其完全启动并显示服务地址后,再使用 pyVideoTrans。
  4. 检查端口占用

    • 使用命令 netstat -ano | findstr :7860 检查 7860 端口是否被其他程序占用。如果被占用,可以终止占用进程,或者修改本地服务的启动端口(例如改为 7861),并在 pyVideoTrans 中同步修改地址。

总结:此错误与 pyVideoTrans 软件本身无关,是网络连接问题。核心是确保您配置中指向的本地服务(127.0.0.1:7860)处于正常运行状态。

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Donate: https://ko-fi.com/jianchang512

Similar issues already exist

Trending Questions