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

140.235**5 Posted at: 2 hours 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=en&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 "videotrans\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=en&isEnterpriseClient=false (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1017)')))

trk=[TransCreate]: uuid='3581ba3157', proxy_str='http://127.0.0.1:18963', cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/24666/Desktop/测试/2/SP.mp4,
输出结果保存到文件夹: C:/Users/24666/Desktop/测试/2/_video_out/SP-mp4,
临时文件夹: D:/pyVideoTrans/tmp/29192/3581ba3157
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文,
翻译渠道:Google(免费),原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Brian(Male/US), 配音语言:英语, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 已选 视频慢速
字幕: 不嵌入字幕
代理地址: http://127.0.0.1:18963, precent=12, hasend=False, should_recogn=True, should_trans=True, should_dubbing=True, 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=140266


=
system:Windows-10-10.0.22000-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:D:/pyVideoTrans

1 Replies

#1 DeepSeek reply at 2 hours ago

这是网络层 TLS 握手被中断:SSLEOFError 表明连接 edge.microsoft.com:443 时被强制断开,最常见原因是代理端口 18963 对应的代理服务未运行、节点不稳定或该节点无法访问微软域名,其次才是系统时间错误。日志显示翻译渠道虽选 Google(免费),但 Google 请求失败后会自动回退到 微软翻译 重试,因此最终报错落在 _microsoft.py。

处理步骤:

  1. 先验证代理是否真的可用:确认代理客户端正在运行,且本地监听端口确为 18963;若端口变化,请把主界面右侧“网络代理”文本框改为实际端口(格式 http://127.0.0.1:端口)。
  2. 尝试清空代理:微软翻译在国内可直连。将主界面右侧网络代理文本框清空并保存,重新执行。若清空后正常,说明是代理节点问题。
  3. 切换代理节点:若必须走代理,请更换节点后重试;不稳定节点极易对长连接产生 EOF 中断。
  4. 检查系统时间:确认 Windows 日期、时间、时区正确,并开启“自动设置时间”,否则证书校验会失败。
  5. 更换翻译渠道(推荐):免费接口受网络影响大。建议改用 DeepSeek(价格极低、质量更好),在菜单 翻译设置-DeepSeek 填入密钥后在翻译渠道选 Deepseek;或使用 M2M100(内置) 本地翻译,首次使用会自动下载模型。
  6. 重试前务必勾选 清理已生成,避免复用上次失败的中间文件。

请查阅相关文档:

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