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

2409:8a30* Posted at: 3 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/ai/win-pyvideotrans-v3.99-428

1 Replies

该错误是由于 TTS 配音服务连接地址错误导致的。日志显示软件正尝试向 http://127.0.0.0:9874/tts 发送请求,但 127.0.0.0 是一个无效的本地回环地址(正确应为 127.0.0.1 或实际部署的 IP),且该端口上的服务超时无响应。

解决方法:

  1. 检查配音渠道设置:进入菜单栏对应配音渠道的配置界面(如 GPT-SoVITS / F5-TTS / CosyVoice 等),确认 API 地址字段填写正确。

    • 本地服务地址通常为 http://127.0.0.1:端口号,例如 http://127.0.0.1:9880
    • 确保地址最后没有多余斜杠或空格
    • 确认端口号与您本地部署的 TTS 服务端口一致。
  2. 确认 TTS 服务已启动:在启动 pyVideoTrans 之前,请先运行对应的本地 TTS 服务(如 GPT-SoVITS 的 api.py),并确保它正常运行在指定端口上。
  3. 测试连接:打开浏览器访问 http://127.0.0.1:端口号,若能正常响应则服务正常。

请查阅相关文档:

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