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

113.74* Posted at: 1 day ago 👁16

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


=
Windows-10-10.0.19045-SP0
version:v3.79
frozen:True
language:zh

1 Replies

这个错误表明软件尝试连接本地端口 127.0.0.1:9911 的翻译服务失败,因为目标端口没有程序在监听。这通常发生在您选择了 “自定义翻译API”“本地大模型翻译” 渠道,但对应的本地服务(如 LibreTranslate、Ollama、vLLM 等)没有启动。

请按以下步骤排查:

  1. 检查翻译渠道:在主界面第3行“翻译渠道”中,确认您当前选择的是否为 “自定义翻译API”“本地大模型翻译”
  2. 启动本地服务

    • 如果您使用的是 LibreTranslate,请确保已启动其服务(例如,在命令行运行 libretranslate --host 127.0.0.1 --port 9911)。
    • 如果您使用的是 OllamavLLM 或其他本地大模型,请确保对应的服务进程正在运行,并且监听的端口与软件设置中的一致。
  3. 核对设置:在菜单栏选择 工具/选项 -> 翻译设置,找到您使用的渠道(如“自定义翻译API”),检查其 API地址 是否与您本地服务启动的地址和端口完全一致(默认是 http://127.0.0.1:9911)。
  4. 临时解决方案:如果您暂时不需要使用本地翻译服务,请将翻译渠道切换为其他可用的在线渠道(如 Google、DeepSeek、ChatGPT 等)。

总结:此错误是连接不上您自己配置的本地翻译服务。请先确保该服务已正确启动并运行在 127.0.0.1:9911 端口。

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