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

2602**b8 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 89, in run
File "videotrans\task\_stage_translate.py", line 31, in trans
File "videotrans\translator\_runner.py", line 75, in run
File "videotrans\translator\_base.py", line 69, in run
File "videotrans\translator\_base.py", line 107, 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)')))

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: D:/Baasir/Documents/School Swap_ Korea Style Why Korean Kids Study Until 10PM Full Documentary.mp4,
输出结果保存到文件夹: D:/Baasir/Documents/_video_out/School Swap_ Korea Style Why Korean Kids Study Until 10PM Full Documentary-mp4,
临时文件夹: D:/win-pyvideotrans-v4.14/tmp/21652/44d70bc67f
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:openai-whisper(内置), small, 发音语言: 英语, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:Qwen3-TTS(内置), 角色:clone, 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 未选 音频加速, 已选 视频慢速
字幕: 嵌入硬字幕
代理地址:http://127.0.0.1:7897
video_duration_ms=3528520


=
system:Windows-10-10.0.19045-SP0
version:v4.14
frozen:True
language:zh_CN
root_dir:D:/win-pyvideotrans-v4.14

1 Replies

#1 DeepSeek reply at 1 hour ago

这是网络代理导致的 SSL 握手失败,与软件本身无关。

从日志看:你选了 Google(免费) 翻译,但因国内无法直连 Google,软件自动回退到微软翻译(edge.microsoft.com),而你在主界面代理文本框填了 http://127.0.0.1:7897,请求被强制走本地代理,代理节点握手时被切断(EOF),因此报 SSLError。

解决方案(按优先级)

方案一:清空代理(最快)

  1. 主界面 对齐控制(Alignment) 行右侧的代理文本框,将其中的 http://127.0.0.1:7897 全部删除,留空
  2. 翻译渠道不要选 Google(免费)(国内必须科学上网才可用),改为 微软(免费),或国内可直连的 AI 渠道(DeepSeek / 智谱AI / 字节火山 等)
  3. 勾选 清理已生成 后重新执行
微软翻译、百度、腾讯、阿里、DeepSeek 等国内可直连的接口都不需要代理,填了代理反而会失败。

方案二:确实需要保留代理(如使用 Google/Gemini)

  1. 确认代理软件(Clash 等)正在运行,且端口号正确(7897 是否为你的实际混合端口)
  2. 更换一个更稳定的节点,或切换代理模式(不要让 edge.microsoft.com 走代理规则)
  3. 检查本地系统时间是否准确(SSL 证书校验依赖系统时间,时间偏差过大会直接握手失败)
  4. 重启代理软件与 pyVideoTrans 后重试

方案三:换用更稳的翻译渠道(推荐)

  • 去 https://platform.deepseek.com 注册充值(可只充 1 元),获取 API Key
  • 填入 菜单 → 翻译设置 → DeepSeek,主界面翻译渠道选 DeepSeek
  • 同时清空代理文本框(DeepSeek 属于国内 API,无需代理)

请查阅相关文档:

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