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

47.236* Posted at: 1 hour ago 👁3

HTTPSConnectionPool(host='api-edge.cognitive.microsofttranslator.com', port=443): Max retries exceeded with url: /translate?from=&to=zh-Hans&api-version=3.0&includeSentenceLength=true (Caused by ProxyError('Unable to connect to proxy', RemoteDisconnected('Remote end closed connection without response')))


=
system:Windows-10-10.0.26200-SP0
version:v3.92
frozen:True
language:zh
root_dir:E:/win-pyvideotrans-v3.92

1 Replies

这个错误表明软件在尝试连接微软翻译API时,网络请求因代理问题而失败。您可能正在使用代理软件,但软件未能正确通过代理访问外部服务。

核心解决方法:在主界面正确配置网络代理。

请按以下步骤操作:

  1. 检查代理状态:确认您的代理软件(如Clash、V2Ray等)正在运行,并且可以正常访问 api-edge.cognitive.microsofttranslator.com 等外部网站。
  2. 设置代理:在pyVideoTrans主界面,找到 第5行“同步与字幕显示” 区域,有一个 “网络代理” 输入框。
  3. 填写代理地址:在该输入框中填入您的代理地址和端口。格式通常为 http://127.0.0.1:端口号socks5://127.0.0.1:端口号。例如,如果您的Clash默认HTTP代理端口是7890,则填入 http://127.0.0.1:7890
  4. 重新尝试翻译:设置完成后,再次执行翻译任务。

如果问题依旧,请尝试:

  • 切换翻译渠道:暂时使用其他不需要代理的翻译渠道,例如“百度翻译”或“腾讯翻译”(需要申请API Key),或者使用本地大模型翻译。
  • 关闭代理软件:如果您不需要代理,请完全关闭代理软件,并清空“网络代理”输入框,让软件直连网络。

请查看更多参考文档:

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