#3613 requests.exceptions.ChunkedEncodingError: Response ended prematurely

126.141* Posted at: 1 day ago 👁18

Response ended prematurely:
Traceback (most recent call last):
File "requests\models.py", line 820, in generate
File "urllib3\response.py", line 1088, in stream
File "urllib3\response.py", line 1248, in read_chunked
File "urllib3\response.py", line 1178, in _update_chunk_length
urllib3.exceptions.ProtocolError: Response ended prematurely

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 336, in run
File "videotrans\tts\_base.py", line 178, in run
File "videotrans\tts\_base.py", line 205, in _local_mul_thread
File "videotrans\tts\_gptsovits.py", line 96, 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 746, in send
File "requests\models.py", line 902, in content
File "requests\models.py", line 822, in generate
requests.exceptions.ChunkedEncodingError: Response ended prematurely


=
system:Windows-10-10.0.26200-SP0
version:v3.98
frozen:True
language:zh
root_dir:E:/GPT-S/pyVideoTrans

1 Replies

这是由于 GPT-SoVITS API 服务连接不稳定或响应中断导致的。

  1. 确保 GPT-SoVITS 的 API 服务已正确启动,并且运行在 http://127.0.0.1:7860(或你配置的地址)。
  2. 在 pyVideoTrans 的“菜单-翻译设置-GPT-SoVITS 设置”中,确认 API 地址与 GPT-SoVITS 服务地址完全一致。
  3. 如果问题持续,尝试重启 GPT-SoVITS 服务,并检查其运行日志是否有错误。
  4. 如果使用网络代理,请确保代理设置正确,或者尝试在 pyVideoTrans 的“网络代理”设置中暂时清空代理地址。

请查阅相关文档:

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