#4705 requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='127.0.0.0', port=9874): Max retries exceeded with url: /tts

2409:8a30* Posted at: 8 hours ago

连接超时,请检查网络连接是否稳定:
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
TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。

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 207, in _new_conn
urllib3.exceptions.ConnectTimeoutError: (, 'Connection to 127.0.0.0 timed out. (connect timeout=3600)')

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.0', port=9874): Max retries exceeded with url: /tts (Caused by ConnectTimeoutError(, 'Connection to 127.0.0.0 timed out. (connect timeout=3600)'))

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 388, 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\_gptsovits.py", line 98, in _item_task
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 665, in send
requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='127.0.0.0', port=9874): Max retries exceeded with url: /tts (Caused by ConnectTimeoutError(, 'Connection to 127.0.0.0 timed out. (connect timeout=3600)'))


=
system:Windows-10-10.0.19045-SP0
version:v3.99
frozen:True
language:zh
root_dir:C:/Users/Administrator/.scrape/win-pyvideotrans-v3.99-428

1 Replies

连接失败原因是软件尝试连接本地 TTS 服务(地址 127.0.0.0:9874),但该服务未启动或地址配置错误(正确应为 127.0.0.1:9874)。

解决方案

  1. 检查菜单栏 设置 -> TTS设置(或相应配音渠道设置),确认 API 地址是否为 http://127.0.0.1:9874(常见端口),而非 127.0.0.0。若地址有误,修改为正确的本地地址。
  2. 确保你使用的 TTS 服务(如 GPT-SoVITS、F5-TTS、Index-TTS 等)已成功启动并运行在指定端口。如未启动,请先启动对应的服务程序。

若问题依旧,请检查服务日志或防火墙是否阻止了本地端口通信。

请查阅相关文档:

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