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

42.200**4 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
......
deotrans\translator\_base.py", line 79, in run
File "videotrans\translator\_base.py", line 117, in _run_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='ff66e05a95', proxy_str='http://127.0.0.1:7897', cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/Video Restoration/视频/修复/PRED-882.restored.mp4,
输出结果保存到文件夹: D:/Video Restoration/视频/修复/PRED-882.restored-mp4,
临时文件夹: D:/Video Restoration/win-视频翻译pyvideotrans-v4.16/tmp/10660/ff66e05a95
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 日语,
翻译渠道:Google(免费),原始语言:日语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕
代理地址: http://127.0.0.1:7897, precent=12, hasend=False, should_recogn=True, should_trans=True, should_dubbing=False, should_hebing=True, is_copy_video=False, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=True
video_duration_ms=8899099


=
system:Windows-10-10.0.26300-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:D:/Video Restoration/win-视频翻译pyvideotrans-v4.16

1 Replies

#1 DeepSeek reply at 1 hour ago

本质原因:你选择的是 Google 翻译,但日志显示请求实际发往了 edge.microsoft.com(微软翻译)。这是 v4.13 起的内置机制:Google 翻译检测失败(429 或被代理拦截)时,自动降级切换到微软翻译,而微软免费接口在你当前的代理环境下 SSL 握手被中断(EOF),导致最终失败。

从日志看代理为 http://127.0.0.1:7897,edge.microsoft.com 在国内可直连,走代理反而易出现此 SSL 错误;另外系统时间偏差也会直接触发 SSL 证书校验失败。

解决方案(按优先级):

  1. 改用 DeepSeek 翻译(最推荐,效果远好于免费渠道)

    • 前往 https://platform.deepseek.com/ 登录并充值(可只充 1 元),获取 API Key
    • 软件菜单 → 翻译设置 → DeepSeek,填入密钥
    • 主界面"翻译字幕"渠道下拉改选 Deepseek,在设置面板中取消勾选 Thinking
  2. 或改用 M2M100(内置) 本地离线翻译

    • 主界面翻译渠道选择 M2M100(内置),首次使用会自动下载模型(存放位置:软件目录/models/m2m100_12b)
  3. 若想继续使用免费渠道,需处理代理与时间问题

    • 清空主界面"对齐控制"行右侧的代理文本框(微软翻译国内直连,不需代理;代理不稳定正是本次 SSL 失败的直接诱因),保存后勾选清理已生成重试
    • 若必须保留代理,请检查系统时间是否准确(SSL 证书对时间极其敏感),并确认代理节点可正常访问 edge.microsoft.com
    • 确认 Google 翻译本身可用:国内使用 Google 翻译必须科学上网,若节点 IP 不干净会返回 429,从而触发降级
  4. Edge-TTS 403 附带提醒(v4.16 已修复):源码部署需执行 uv add git+https://github.com/rany2/edge-tts.git

请查阅相关文档:

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