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

23.177**9 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=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 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=en&isEnterpriseClient=false (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1017)')))

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/24666/Desktop/abcd/video-1-mp4/video-1.mp4,
输出结果保存到文件夹: C:/Users/24666/Desktop/abcd/video-1-mp4/_video_out/video-1-mp4,
临时文件夹: D:/ABC/tmp/16024/176bfae3e7
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 简体中文, 断句方式:默认断句
翻译渠道:Google(免费),原始语言:简体中文,目标语言:英语, 已选 发送完整字幕
配音渠道:Edge-TTS(免费), 角色:Steffan(Male/US), 配音语言:英语, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
字幕: 嵌入软字幕
代理地址:http://127.0.0.1:20799
video_duration_ms=208381


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

1 Replies

#1 DeepSeek reply at 1 hour ago

这是请求微软免费翻译接口时 TLS 握手被中断导致的 SSLError(EOF occurred in violation of protocol),本质是网络连接/代理层问题,而非软件本身错误。

核心原因:从日志看,你填写的翻译渠道是 Google(免费),但报错主机是 edge.microsoft.com(微软翻译)。

日志中代理地址为 http://127.0.0.1:20799,该代理无法正常完成与微软服务器的 SSL 握手(节点不通、代理不稳定、或代理未运行/端口错误)。

解决步骤:

  1. 确认代理软件正在运行,且端口确为 20799;测试该代理能否正常访问境外网站。

  2. 若代理不稳定,尝试更换代理节点或其它可用端口。

  3. 若不想使用代理:将主界面「对齐控制」右侧的代理文本框清空并保存,然后改用国内可直连的翻译渠道,如 DeepSeek(https://platform.deepseek.com/ 充值获取 API Key,填入菜单-翻译设置-DeepSeek)、百度翻译、腾讯翻译、M2M100(内置) 本地翻译。

  4. 也可直接改用微软翻译以外的渠道规避该报错;v4.13 起 Google 翻译被 429 拦截时会自动切换微软翻译,而当前微软接口连接失败,故整体报错。

补充:软件左上角版本 v4.14,日志显示为 Windows 预打包版(frozen:True)。

若后续仍有网络相关报错,请注意代理设置仅影响境外接口,国内 API(DeepSeek/百度/腾讯等)会自动绕过代理。

请查阅相关文档:

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