#4574 deepl.exceptions.ConnectionException: Connection failed: HTTPSConnectionPool(host='api.deepl.com', port=443): Max retrie

2409:8a6c* Posted at: 2 hours ago 👁7

连接被拒绝,目标服务可能未运行或端口错误
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.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.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\task\_only_one.py", line 65, in run
File "videotrans\task\trans_create.py", line 678, in trans
File "videotrans\translator\__init__.py", line 988, in run
File "videotrans\translator\_base.py", line 100, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_deepl.py", line 50, 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.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.19045-SP0
version:v3.99
frozen:True
language:zh
root_dir:D:/translate

1 Replies

连接被拒绝是因为你配置了网络代理,但代理服务未运行或地址/端口错误。

解决方案:

  1. 检查你是否在网络代理设置中填写了地址(例如 http://127.0.0.1:10808)。如果有,请确认你的代理客户端(如 Clash、V2Ray)已启动且端口号一致。
  2. 如果不使用代理,请清空软件主界面的“网络代理地址”输入框,留空即可。
  3. 如果确实需要代理,请确保代理端口无误,且代理软件允许本机连接(部分代理软件需开启“允许局域网”选项)。
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.

Related resource

Similar issues already exist