#4017 requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=7897): Max retries exceeded with url: http://1

2409:8a0c* 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 787, in urlopen
File "urllib3\connectionpool.py", line 493, in _make_request
File "urllib3\connection.py", line 494, in request
File "http\client.py", line 1278, in endheaders
File "http\client.py", line 1038, in _send_output
File "http\client.py", line 976, in send
File "urllib3\connection.py", line 325, 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: HTTPConnectionPool(host='127.0.0.1', port=7897): Max retries exceeded with url: http://192.168.1.3:5000/tts (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 "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 386, in run
File "videotrans\tts\_base.py", line 181, in run
File "videotrans\tts\_base.py", line 210, in _local_mul_thread
File "videotrans\tts\_ttsapi.py", line 84, in _item_task
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 400, in
File "concurrent\futures\_base.py", line 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_ttsapi.py", line 58, in _run
File "videotrans\tts\_ttsapi.py", line 101, in _apirequests
File "requests\api.py", line 115, in post
File "requests\api.py", line 59, in request
File "requests\sessions.py", line 589, in request
File "requests\sessions.py", line 703, in send
File "requests\adapters.py", line 671, in send
requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=7897): Max retries exceeded with url: http://192.168.1.3:5000/tts (Caused by ProxyError('Unable to connect to proxy', NewConnectionError(': Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')))


=
system:Windows-10-10.0.22000-SP0
version:v3.98
frozen:True
language:zh
root_dir:D:/翻译/翻译/win-pyvideotrans-v3.98-0406

1 Replies

这是由于网络代理设置不正确或代理服务未运行导致的。错误显示软件试图通过代理 127.0.0.1:7897 连接到 TTS 服务 http://192.168.1.3:5000/tts,但代理端口 7897 无法连接。

解决方案:

  1. 检查代理服务:确认您设置的代理软件(如 Clash、V2RayN 等)是否正在运行,并且其本地监听端口是否为 7897。如果代理软件未运行,请启动它。
  2. 检查代理地址:如果代理软件正在运行但端口不是 7897,请将软件主界面“网络代理地址”文本框中的内容修改为正确的地址和端口,格式为 http://127.0.0.1:端口号
  3. 关闭代理:如果您当前不需要使用代理来访问外部服务(例如,您使用的 TTS 服务 http://192.168.1.3:5000 是本地部署的),请直接清空主界面“网络代理地址”文本框中的所有内容,然后重试任务。
  4. 检查本地 TTS 服务:确认您本地部署的 TTS 服务(地址为 http://192.168.1.3:5000)是否已成功启动并正在运行。

请查阅相关文档:

Post Your Reply