#5452 连接被重置,网络可能不稳定:Traceback (most recent call last): File "urllib3\connectionpool.py", line 787, in urlopen File "urllib3\

188.253* Posted at: 10 hours ago

连接被重置,网络可能不稳定:
Traceback (most recent call last):
File "urllib3\connectionpool.py", line 787, in urlopen
File "urllib3\connectionpool.py", line 534, in _make_request
File "urllib3\connection.py", line 565, in getresponse
File "http\client.py", line 1375, in getresponse
File "http\client.py", line 318, in begin
File "http\client.py", line 279, in _read_status
File "socket.py", line 717, in readinto
ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。

During handling of the above exception, another exception occurred:

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 474, in increment
File "urllib3\util\util.py", line 38, in reraise
File "urllib3\connectionpool.py", line 787, in urlopen
File "urllib3\connectionpool.py", line 534, in _make_request
File "urllib3\connection.py", line 565, in getresponse
File "http\client.py", line 1375, in getresponse
File "http\client.py", line 318, in begin
File "http\client.py", line 279, in _read_status
File "socket.py", line 717, in readinto
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None))

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 184, in run
File "videotrans\tts\_base.py", line 134, in run
File "videotrans\tts\_base.py", line 215, in _item_task
File "videotrans\tts\_gptsovits.py", line 81, in _run
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 659, in send
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None))

1 Replies

这是 GPT-SoVITS 本地服务未正确启动或地址配置错误导致连接被拒绝。

解决步骤

  1. 确保已启动 GPT-SoVITS 的 API 服务(运行 api.pyapi_v2.py,端口默认 9880)。
  2. 在 pyVideoTrans 菜单 → TTS 设置 → GPT-SoVITS 中,将 API 地址填写为 http://127.0.0.1:9880不要使用 0.0.0.0)。
  3. 检查软件中勾选的 api_v2? 是否与启动的文件版本一致(启动 api.py 则不勾选,启动 api_v2.py 则勾选)。

如果服务已启动但仍有此错误,请确认防火墙未阻止该端口,或尝试重启服务。

请查阅相关文档:

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. Dondate: ko-fi.com/jianchang512

Related resource

Similar issues already exist