#1233 httpx.ConnectError: EOF occurred in violation of protocol (_ssl.c:997)

46.232* Posted at: 1 day ago 👁20

网络连接失败:
Traceback (most recent call last):
File "httpx\_transports\default.py", line 101, in map_httpcore_exceptions
File "httpx\_transports\default.py", line 250, in handle_request
File "httpcore\_sync\connection_pool.py", line 216, in handle_request
File "httpcore\_sync\connection_pool.py", line 196, in handle_request
File "httpcore\_sync\http_proxy.py", line 317, in handle_request
File "httpcore\_sync\http11.py", line 383, in start_tls
File "httpcore\_backends\sync.py", line 152, in start_tls
File "contextlib.py", line 153, in exit
File "httpcore\_exceptions.py", line 14, in map_exceptions
httpcore.ConnectError: EOF occurred in violation of protocol (_ssl.c:997)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 279, in run
File "videotrans\tts\_base.py", line 182, in run
File "videotrans\tts\_elevenlabs.py", line 74, in _item_task
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 400, in
File "concurrent\futures\_base.py", line 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_elevenlabs.py", line 68, in _run
File "elevenlabs\text_to_speech\client.py", line 163, in convert
File "contextlib.py", line 135, in enter
File "elevenlabs\text_to_speech\raw_client.py", line 148, in convert
File "contextlib.py", line 135, in enter
File "elevenlabs\core\http_client.py", line 310, in stream
File "contextlib.py", line 135, in enter
File "httpx\_client.py", line 867, in stream
File "httpx\_client.py", line 913, in send
File "httpx\_client.py", line 941, in _send_handling_auth
File "httpx\_client.py", line 978, in _send_handling_redirects
File "httpx\_client.py", line 1013, in _send_single_request
File "httpx\_transports\default.py", line 249, in handle_request
File "contextlib.py", line 153, in exit
File "httpx\_transports\default.py", line 118, in map_httpcore_exceptions
httpx.ConnectError: EOF occurred in violation of protocol (_ssl.c:997)


=
system:Windows-10-10.0.19045-SP0
version:v3.82
frozen:True
language:zh
root_dir:D:/win-videotrans-v3.82_20251019_125144

1 Replies

这个错误是网络连接问题,具体是在使用 ElevenLabs TTS 配音时发生的 SSL 连接中断。请按以下步骤排查:

  1. 检查网络连接:确保您的网络稳定,可以正常访问国际网站。ElevenLabs 是国外服务,可能需要稳定的国际网络连接。
  2. 配置网络代理

    • 如果您使用代理,请在菜单栏选择 翻译设置
    • 在"网络代理"选项中设置正确的代理地址和端口
    • 或者尝试关闭代理直接连接
  3. 更换配音渠道

    • 暂时切换到其他配音渠道,如 Edge-TTS(免费)OpenAI TTS
    • 这可以确认是 ElevenLabs 服务问题还是普遍的网络问题
  4. 检查 ElevenLabs API 密钥

    • 确认在 TTS 配音设置中输入的 ElevenLabs API 密钥正确有效
    • 确保账户有足够的额度

如果问题持续存在,请提供完整的日志文件(位于 D:/win-videotrans-v3.82_20251019_125144/logs/ 目录下)以便进一步分析。

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

Trending Questions