#4703 多次重试连接失败,服务可能暂时不可用:Traceback (most recent call last): File "urllib3\connection.py", line 198, in _new_conn File "urlli

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 60, in create_connection
File "socket.py", line 967, in getaddrinfo
socket.gaierror: [Errno 11001] getaddrinfo failed

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 205, in _new_conn
urllib3.exceptions.NameResolutionError: : Failed to resolve 'ttp' ([Errno 11001] getaddrinfo failed)

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='ttp', port=80): Max retries exceeded with url: /127.0.0.0:9874/tts (Caused by NameResolutionError(": Failed to resolve 'ttp' ([Errno 11001] getaddrinfo failed)"))

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 677, in send
requests.exceptions.ConnectionError: HTTPConnectionPool(host='ttp', port=80): Max retries exceeded with url: /127.0.0.0:9874/tts (Caused by NameResolutionError(": Failed to resolve 'ttp' ([Errno 11001] getaddrinfo failed)"))


=
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

出现 Failed to resolve 'ttp' 错误,说明软件将 GPT-SoVITS 的 API 地址解析为了 ttp 这一错误主机名。根本原因是 API 地址配置格式不正确,很可能缺少了协议头 http:// 或写错了(例如写成了 ttp://)。

解决方法:

  1. 检查 GPT-SoVITS 设置:打开菜单 -> TTS设置 -> GPT-SoVITS,确认 API 地址 栏中填写的内容格式正确。必须包含 http://https:// 协议头,例如 http://127.0.0.1:9874
  2. 确认服务运行状态:确保 GPT-SoVITS 服务已正确启动并且监听在指定的端口(例如 9874),否则请启动该服务。
  3. 检查代理设置:如果主界面“网络代理”框中有内容且填写错误,也会导致域名解析失败。请确保代理地址为空或填写正确(如 http://127.0.0.1:7890)。

请查阅相关文档:

Post Your Reply