#8372 Secure connection failed, check system time or network settingsurllib3.exceptions.SSLError: EOF occurred in violation of

2a0e**78e9 Posted at: 1 hour ago

Secure connection failed, check system time or network settings
urllib3.exceptions.SSLError: EOF occurred in violation of protocol (_ssl.c:1017)

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: HTTPSConnectionPool(host='edge.microsoft.com', port=443): Max retries exceeded with url: /translate/translatetext?from=&to=zh-Hans&isEnterpriseClient=false (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1017)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\task\only_one.py", line 90, in run
File "videotrans\task\_stage_translate.py", line 31, in trans
File "videotrans\translator\_runner.py", line 71, in run
File
......
n_text
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 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_microsoft.py", line 49, 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 675, in send
requests.exceptions.SSLError: HTTPSConnectionPool(host='edge.microsoft.com', port=443): Max retries exceeded with url: /translate/translatetext?from=&to=zh-Hans&isEnterpriseClient=false (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1017)')))

trk=[TransCreate]: uuid='40ff7230fe', proxy_str='http://127.0.0.1:7897', cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/yao/Desktop/王翼印度防御其实很简单如果你学会这个_Remote Chess Academy.mp4,
输出结果保存到文件夹: C:/Users/yao/Desktop/王翼印度防御其实很简单如果你学会这个_Remote Chess Academy-mp4,
临时文件夹: F:/下载/win-pyvideotrans-v4.16/tmp/3176/40ff7230fe
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 英语,
翻译渠道:微软(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Yunxi(Male/CN), 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 不嵌入字幕
代理地址: http://127.0.0.1:7897, precent=12, hasend=False, should_recogn=True, should_trans=True, should_dubbing=True, should_hebing=True, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=True
video_duration_ms=1457666


=
system:Windows-10-10.0.26300-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:F:/下载/win-pyvideotrans-v4.16

1 Replies

#1 DeepSeek reply at 1 hour ago

这是网络层的 TLS/SSL 握手被中断导致的,并非软件本身的缺陷。报错中的 EOF occurred in violation of protocol 表示 edge.microsoft.com 的 HTTPS 连接在握手中途被强制断开;结合日志中 proxy_str='http://127.0.0.1:7897',说明你的代理(Clash 类,7897 端口)对该域名的转发或 TLS 隧道出现了异常。微软免费翻译接口在国内通常可以直接连接,走代理反而容易触发这种中断。

按以下顺序排查:

  1. 先校验系统时间:右键任务栏时间 → 调整日期/时间 → 开启“自动设置时间”和“自动设置时区”,然后点击“立即同步”。系统时间偏差超过数分钟会导致 SSL 证书校验失败。
  2. 让微软翻译绕过代理:

    • 在主界面“同步对齐”行右侧的代理文本框中,把 http://127.0.0.1:7897 清空并保存,然后勾选清理已生成重试;
    • 或者在 Clash 等代理软件中,将 edge.microsoft.com、*.microsoft.com 域名规则设为 DIRECT(直连),保留代理供 Edge-TTS、Google 等其他渠道使用。
  3. 切换代理节点:如果必须使用代理,换一个节点后再试。当前节点很可能对微软域名做了拦截或 TLS 重置。
  4. 临时改用其他翻译渠道(推荐做法,最省事):DeepSeek、智谱AI 等国内 API 默认不走代理,稳定性和翻译质量都优于微软免费接口。在 菜单 → 翻译设置 → DeepSeek 中填入 API Key,然后把翻译渠道下拉切换为 DeepSeek。
  5. 若以上都无效,检查是否有杀毒软件、防火墙或“HTTPS 解密”类功能在中间拦截证书,可临时关闭后重试。

补充:你的配音渠道是 Edge-TTS(免费),同样依赖外网连接,如果代理异常,后续配音阶段也可能失败,建议一并按上述规则处理。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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 via ko-fi.com

Related resource