#2712 deepl.exceptions.ConnectionException: Connection failed: HTTPSConnectionPool(host='api-free.deepl.com', port=443): Max r

167.253* Posted at: 2 hours ago 👁8

连接被拒绝,目标服务可能未运行或端口错误:Traceback (most recent call last):
File "urllib3\connection.py", line 198, in _new_conn
File "urllib3\util\connection.py", line 85, in create_connection
File "urllib3\util\connection.py", line 73, in create_connection
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "urllib3\connectionpool.py", line 773, in urlopen
File "urllib3\connectionpool.py", line 1042, in _prepare_proxy
File "urllib3\connection.py", line 753, in connect
File "urllib3\connection.py", line 213, in _new_conn
urllib3.exceptions.NewConnectionError: : Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

The above exception was the direct cause of the following exception:

urllib3.exceptions.ProxyError: ('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "requests\adapters.py", line 644, in send
File "urllib3\connectionpool.py", line 841, in urlopen
File "urllib3\util\retry.py", line 519, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api-free.deepl.com', port=443): Max retries exceeded with url: /v2/translate (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "deepl\http_client.py", line 175, in _internal_request
File "requests\sessions.py", line 703, in send
File "requests\adapters.py", line 671, in send
requests.exceptions.ProxyError: HTTPSConnectionPool(host='api-free.deepl.com', port=443): Max retries exceeded with url: /v2/translate (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')))

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 903, in run
File "videotrans\translator\_base.py", line 81, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_deepl.py", line 51, in _item_task
File "deepl\translator.py", line 442, in translate_text
File "deepl\translator.py", line 141, in _api_call
File "deepl\http_client.py", line 131, in request_with_backoff
File "deepl\http_client.py", line 117, in request_with_backoff
File "deepl\http_client.py", line 189, in _internal_request
deepl.exceptions.ConnectionException: Connection failed: HTTPSConnectionPool(host='api-free.deepl.com', port=443): Max retries exceeded with url: /v2/translate (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')))


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

3 Replies

这个是什么问题啊

错误显示软件尝试通过代理连接 DeepL 翻译服务失败,但代理服务器(127.0.0.1:7860)拒绝了连接。这通常是因为代理服务未启动或端口配置错误。

请按以下步骤排查:

  1. 检查代理服务状态:确保你用于科学上网的代理软件(如 Clash、V2RayN 等)正在运行,并且监听在 127.0.0.1:7860 端口。
  2. 核对代理地址:在 pyVideoTrans 主界面第5行的“网络代理”输入框中,确认地址格式为 http://127.0.0.1:7860(注意是 http:// 开头,不是 https://)。
  3. 验证代理端口:打开你的代理软件设置,查看其“HTTP 代理端口”或“混合端口”是否为 7860。如果不是,请将 pyVideoTrans 中的代理地址修改为正确的端口(例如 http://127.0.0.1:7890)。
  4. 临时关闭代理测试:如果确认代理软件已运行且端口正确,但问题依旧,可以尝试暂时清空“网络代理”输入框(留空),然后重新执行任务。这可以判断是否是代理软件本身的问题。
  5. 检查防火墙:确保你的防火墙或安全软件没有阻止 pyVideoTrans 或你的代理软件访问网络。

如果以上步骤均无法解决问题,请提供你代理软件的配置截图,以及 D:/win-pyvideotrans-v3.92/logs/ 目录下最新的日志文件内容。

请查看更多参考文档:

错误显示软件尝试通过代理连接 DeepL 翻译服务失败,但代理服务器(127.0.0.1:7860)拒绝了连接。这通常是因为代理服务未启动或端口配置错误。

请按以下步骤排查:

  1. 检查代理服务状态:确保你用于科学上网的代理软件(如 Clash、V2RayN 等)正在运行,并且监听在 127.0.0.1:7860 端口。
  2. 核对代理地址:在 pyVideoTrans 主界面第5行的“网络代理”输入框中,确认地址格式为 http://127.0.0.1:7860(注意是 http:// 开头,不是 https://)。
  3. 验证代理端口:打开你的代理软件设置,查看其“HTTP 代理端口”或“混合端口”是否为 7860。如果不是,请将 pyVideoTrans 中的代理地址修改为正确的端口(例如 http://127.0.0.1:7890)。
  4. 临时关闭代理测试:如果确认代理软件已运行且端口正确,但问题依旧,可以尝试暂时清空“网络代理”输入框(留空),然后重新执行任务。这可以判断是否是代理软件本身的问题。
  5. 检查防火墙:确保你的防火墙或安全软件没有阻止 pyVideoTrans 或你的代理软件访问网络。

如果以上步骤均无法解决问题,请提供你代理软件的配置截图,以及 D:/win-pyvideotrans-v3.92/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

Trending Questions