#2268 HTTPSConnectionPool(host='api-edge.cognitive.microsofttranslator.com', port=443): Max retries exceeded with url: /transl

2409:8a34* Posted at: 1 day ago 👁17

HTTPSConnectionPool(host='api-edge.cognitive.microsofttranslator.com', port=443): Max retries exceeded with url: /translate?from=&to=ja&api-version=3.0&includeSentenceLength=true (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))


=
system:Windows-10-10.0.19045-SP0
version:v3.92
frozen:True
language:zh
root_dir:D:/peiyinzimujianjiruanjian

1 Replies

这个错误表明软件无法连接到微软翻译API服务器 (api-edge.cognitive.microsofttranslator.com)。在Windows系统上,这通常是由于网络代理设置或防火墙/杀毒软件拦截导致的。

请按以下步骤排查和解决:

  1. 检查网络代理设置(最常见原因)

    • 如果您没有使用任何代理软件(如Clash、V2Ray等),请确保主界面第5行的“网络代理”输入框留空
    • 如果您正在使用代理软件,请确保代理已开启并正常工作。然后在“网络代理”输入框中填入正确的地址和端口,格式如 http://127.0.0.1:7890(请替换为您代理软件的实际端口)。
  2. 临时关闭防火墙和杀毒软件

    • 暂时关闭Windows Defender防火墙和第三方杀毒软件(如360、腾讯电脑管家等),然后重试翻译操作,看是否成功。如果成功,则需将 pyvideotranssp.exe 添加到杀毒软件的白名单/信任列表中。
  3. 检查系统Hosts文件

    • 错误的Hosts文件条目可能阻止连接。以管理员身份打开记事本,然后打开 C:\Windows\System32\drivers\etc\hosts 文件。
    • 检查是否有包含 api-edge.cognitive.microsofttranslator.comcognitive.microsofttranslator.com 的行,如果有,请在该行开头加上 # 将其注释掉,然后保存文件。
  4. 使用其他翻译渠道(临时替代方案)

    • 如果以上方法均无效,可以暂时切换到其他翻译渠道,例如:

      • Google翻译(需要网络代理)。
      • DeepLX(免费本地部署或使用公共API)。
      • 或配置一个可用的AI大模型翻译渠道(如DeepSeek、Gemini等)。

如果问题依旧,请提供 D:/peiyinzimujianjiruanjian/logs/ 目录下最新的日志文件内容,以便进一步分析。

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