#1879 requests.exceptions.ConnectionError: HTTPConnectionPool(host='0.0.0.0', port=9874): Max retries exceeded with url: /tts?

23.165* Posted at: 1 hour ago 👁5

API 地址不可是 0.0.0.0 ,请修改为 127.0.0.1 :
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
OSError: [WinError 10049] 在其上下文中,该请求的地址无效。

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 1277, in endheaders
File "http\client.py", line 1037, in _send_output
File "http\client.py", line 975, 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 10049] 在其上下文中,该请求的地址无效。

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='0.0.0.0', port=9874): Max retries exceeded with url: /tts?text=%E4%BD%A0%E5%A5%BD%E5%95%8A%E6%88%91%E7%9A%84%E6%9C%8B%E5%8F%8B.&text_lang=zh&ref_audio_path=1.wav&prompt_text=%E5%BE%88%E5%A4%9A%E8%80%81%E6%9D%BF%E8%BF%98%E4%B8%8D%E7%9F%A5%E9%81%93%E6%88%91%E4%BB%ACekong%E5%85%B7%E4%BD%93%E6%98%AF%E5%81%9A%E4%BB%80%E4%B9%88%E7%9A%84%EF%BC%8C%E6%88%91%E4%BB%ACekong%E7%9A%84%E6%8A%A4%E8%82%A4%E5%93%81%E7%A0%94%E5%8F%91%E5%92%8C%E7%94%9F%E4%BA%A7%E5%B7%B2%E7%BB%8F23%E5%B9%B4%E4%BA%86&prompt_lang=zh&speed_factor=1.0 (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10049] 在其上下文中,该请求的地址无效。'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 291, in run
File "videotrans\tts\_base.py", line 177, in run
File "videotrans\tts\_gptsovits.py", line 115, in _item_task
File "videotrans\tts\_gptsovits.py", line 92, in _run
File "requests\api.py", line 73, in get
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='0.0.0.0', port=9874): Max retries exceeded with url: /tts?text=%E4%BD%A0%E5%A5%BD%E5%95%8A%E6%88%91%E7%9A%84%E6%9C%8B%E5%8F%8B.&text_lang=zh&ref_audio_path=1.wav&prompt_text=%E5%BE%88%E5%A4%9A%E8%80%81%E6%9D%BF%E8%BF%98%E4%B8%8D%E7%9F%A5%E9%81%93%E6%88%91%E4%BB%ACekong%E5%85%B7%E4%BD%93%E6%98%AF%E5%81%9A%E4%BB%80%E4%B9%88%E7%9A%84%EF%BC%8C%E6%88%91%E4%BB%ACekong%E7%9A%84%E6%8A%A4%E8%82%A4%E5%93%81%E7%A0%94%E5%8F%91%E5%92%8C%E7%94%9F%E4%BA%A7%E5%B7%B2%E7%BB%8F23%E5%B9%B4%E4%BA%86&prompt_lang=zh&speed_factor=1.0 (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10049] 在其上下文中,该请求的地址无效。'))


=
system:Windows-10-10.0.26100-SP0
version:v3.86
frozen:True
language:zh
root_dir:D:/pyvideo

1 Replies

您在使用 GPT-SoVITS 语音克隆功能时,将 API 地址设置为了 0.0.0.0,这是一个无效的本地地址。请按以下步骤修改:

  1. 在 pyVideoTrans 主界面,点击菜单栏的 工具 -> 设置
  2. 在设置窗口的左侧,找到并点击 GPT-SoVITS
  3. 在右侧的 API地址 输入框中,将 0.0.0.0 修改为 127.0.0.1
  4. 确保 端口 设置与您本地启动的 GPT-SoVITS 服务端口一致(默认通常是 9874)。
  5. 点击 保存 并重启软件。

注意:修改前,请确认您本地的 GPT-SoVITS 服务已经正确启动,并且监听在 127.0.0.1:9874 地址上。

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.

Donate: https://ko-fi.com/jianchang512

Similar issues already exist

Trending Questions