#8344 翻译字幕阶段出错 [Google(免费)] Secure connection failed, check system time or network settingsurllib3.exceptions.SSLError: EOF oc

188.253**1 Posted at: 1 hour ago

翻译字幕阶段出错 [Google(免费)] 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\job.py", line 35, in run

File "videotrans\task\job.py", line 136, in process_task

File "videotrans\task\_stage_tr
......
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='f145717692', proxy_str='http://127.0.0.1:7897', cfg=[TaskCfgVTT]当前工作模式: 翻译视频 批量翻译模式
原始输入文件名: D:/BaiduNetdiskDownload/Leapfrog培训_山金/地质模型建立.mp4,
输出结果保存到文件夹: D:/BaiduNetdiskDownload/Leapfrog培训_山金/mubiao/地质模型建立-mp4,
临时文件夹: D:/BaiduNetdiskDownload/pyvideotrans/tmp/43248/f145717692
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3-turbo, 发音语言: 英语,
翻译渠道:Google(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
配音渠道:OmniVoice(内置), 角色:clone, 配音语言:简体中文, 未选 二次语音识别
音量:+0%, 语速:+0%, 已选 音频加速, 未选 视频慢速
已选 移除每条字幕配音开头和结尾静音缓冲
静音移除力度: default
字幕: 嵌入软字幕(双) 目标语言在下双字幕
已选 仅输出mp4
代理地址: 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=False


=
system:Windows-10-10.0.26200-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:D:/BaiduNetdiskDownload/pyvideotrans

1 Replies

#1 DeepSeek reply at 1 hour ago

核心原因:这是网络代理导致 TLS/SSL 握手被中断,导致连接失败,并非软件本身的缺陷。

日志中两个关键点:

  1. 你选择了 Google(免费),但由于 Google 请求失败(通常是国内网络无法直连,或者被 429 限流),软件会自动回退(降级)使用 微软翻译,因此报错中的主机是 edge.microsoft.com。
  2. 你在主界面填写了代理 http://127.0.0.1:7897,报错 SSLError: EOF occurred in violation of protocol 说明该代理未能正确建立到 edge.microsoft.com 的 HTTPS 隧道,或者代理服务实际未运行、端口不正确、节点被拦截。此外,系统时间偏差也会触发此错。

按以下顺序处理:

方案一(最快,推荐)

  1. 在主界面右侧“网络代理”文本框中清空 http://127.0.0.1:7897,保存。
  2. 将翻译渠道改为 微软翻译(免费)(该接口国内可直连,不需要代理)。
  3. 勾选 清理已生成 后重试。

方案二(仍要用 Google)

  1. 确认你的代理软件(Clash/V2Ray 等)正在运行,且混合端口确实是 7897(可在代理软件界面核对)。
  2. 检查系统时间是否准确(Windows 设置 → 时间和语言 → 自动同步时间),SSL 证书校验失败会直接报此错。
  3. 在代理软件中切换节点或改为“全局模式”,避免对 edge.microsoft.com 作出异常处理。
  4. 若代理无效,请勿在软件内填写无效代理地址,填写后会导致所有网络请求失败。

方案三(完全规避网络问题)
将翻译渠道改为本地模型 M2M100(内置)(首次使用会自动下载模型,位置 软件目录/models/m2m100_12b),或者改用 DeepSeek(国内 API 默认不走代理,需在 菜单-翻译设置-DeepSeek 填写密钥,成本极低且质量更好)。

补充说明:你当前使用的是 v4.16,且为 Windows 预打包版,从日志看,软件本身运行正常,问题只出在网络层。

请查阅相关文档:

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