#2319 HTTPConnectionPool(host='127.0.0.1', port=1188): Max retries exceeded with url: /translate (Caused by NewConnectionError

23.172* Posted at: 3 hours ago 👁4

HTTPConnectionPool(host='127.0.0.1', port=1188): Max retries exceeded with url: /translate (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))


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

1 Replies

这个错误表明软件尝试连接本地端口 127.0.0.1:1188 上的翻译服务(如 LibreTranslate 或 OTT),但该服务未启动或端口被占用,导致连接被拒绝。

请按以下步骤排查:

  1. 检查翻译渠道设置

    • 在软件主界面,确认你选择的“翻译渠道”是否为 LibreTranslateOTT
    • 如果是,你需要先在本地启动对应的翻译服务,并确保其监听端口为 1188
  2. 启动翻译服务

    • 对于 LibreTranslate:你需要先下载并运行 LibreTranslate 服务端。通常命令为 ./libretranslate --host 127.0.0.1 --port 1188
    • 对于 OTT:同样需要先启动 OTT 服务端。
    • 如果服务已启动,请检查其日志,确认它是否在 127.0.0.1:1188 上成功监听。
  3. 临时解决方案(更换翻译渠道)

    • 如果你暂时无法或不想配置本地翻译服务,请在“翻译渠道”下拉菜单中,更换为其他在线渠道,例如 Google翻译(需配置代理)、微软翻译DeepLX
  4. 检查端口占用

    • 使用命令提示符运行 netstat -ano | findstr :1188,查看端口 1188 是否被其他程序占用。如果被占用,可以停止占用程序,或者修改 LibreTranslate/OTT 的启动端口,并在软件设置中同步修改。

总结:此错误并非软件本身故障,而是由于依赖的本地翻译服务未运行。请根据你选择的翻译渠道,启动相应的服务或更换为其他可用的翻译渠道。

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