#2320 503 Server Error: Service Unavailable for url: http://127.0.0.1:1188/translate

23.172* Posted at: 3 hours ago 👁3

503 Server Error: Service Unavailable for url: http://127.0.0.1:1188/translate


=
Windows-10-10.0.26100-SP0
version:v3.81
frozen:True
language:zh

1 Replies

这个错误表明软件在尝试连接到您本地的翻译服务(地址为 http://127.0.0.1:1188/translate)时,该服务没有响应,返回了“503 服务不可用”的错误。

核心原因是:您选择了“自定义翻译API”或“LibreTranslate”等本地翻译服务,但该服务没有正确启动或已停止运行。

请按以下步骤排查:

  1. 检查翻译渠道设置

    • 在主界面第3行“翻译渠道”中,确认您当前选择的是否为“自定义翻译API”、“LibreTranslate”或“OTT”。
    • 如果是,请检查您本地的翻译服务程序(例如 LibreTranslate 服务器)是否已经启动并正在监听 127.0.0.1:1188 端口。
  2. 启动本地翻译服务

    • 如果您确实需要使用本地翻译服务,请确保先启动它。例如,对于 LibreTranslate,您需要在命令行中运行类似 ./libretranslate --host 127.0.0.1 --port 1188 的命令。
    • 您可以在浏览器中访问 http://127.0.0.1:1188 来测试服务是否正常。如果无法访问,说明服务未启动。
  3. 更换翻译渠道(推荐)

    • 如果您只是临时使用,或者无法解决本地服务的问题,最简单的方法是更换一个在线的翻译渠道
    • 在主界面第3行“翻译渠道”中,选择一个可用的在线服务,例如:

      • Google翻译(需要网络代理)
      • 微软翻译
      • DeepLX(免费,无需Key)
      • 或者配置一个AI大模型渠道(如DeepSeek、Gemini等,需要在“翻译设置”中填写API Key)。
  4. 检查网络代理

    • 如果您选择了需要代理的在线渠道(如Google),请确保在第5行“网络代理”中填写了正确的代理地址(例如 http://127.0.0.1:7860)。

总结:问题根源在于本地翻译服务未运行。请先尝试更换为其他翻译渠道以继续工作,然后再去排查和启动您的本地翻译服务。

有用的文档链接: 自定义翻译api

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