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

2602**1ae 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 138, in process_task

File "videotrans\task\translate_srt.py", line 51, 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)')))
[TranslateSrt]翻译字幕: OutputFormat=单语字幕
[TaskCfgSTS]
原始输入文件名: D:/win-pyvideotrans-v4.14/output/subtitlescover/The Vietnamese Boom Is a Lie (and it's worse than you think) [English] [DownloadYoutubeSubtitles.com].srt,
输出结果保存到文件夹: D:/win-pyvideotrans-v4.14/output/translate
翻译渠道:Google(免费),原始语言:en,目标语言:zh-cn, 已选 发送完整字幕
代理地址:http://127.0.0.1:7897


=
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

翻译渠道选的是 Google(免费),但 Google 国内无法直连,软件自动回退到微软翻译,而请求 edge.microsoft.com 时发生 SSL 连接被中断(EOF occurred in violation of protocol)。

根本原因是代理配置问题:填写的 http://127.0.0.1:7897 代理无法正常建立到目标服务器的 HTTPS 连接(代理未运行、端口错误、代理节点不稳定或协议类型不匹配)。

解决方案(按顺序排查):

  1. 确认代理服务正在运行,且端口正确(7897 是否为你的代理软件实际监听端口,常见为 7890/10808/10809 等)。

    用浏览器开启同一代理测试能否访问 https://edge.microsoft.com。

  2. 若代理是 SOCKS5 类型,请将地址改为 socks5://127.0.0.1:端口号;当前填写的 http:// 开头会强制按 HTTP 代理连接,若代理软件未开启 HTTP 混合端口则会失败。

  3. 检查系统时间是否正确。

    SSL 握手对系统时间敏感,时间偏差过大会导致证书校验失败并出现 EOF 类报错。

  4. 若代理不稳定,可切换更干净的节点后重试。

  5. 建议改用更稳定的翻译渠道,避免依赖免费接口:

    • 首选 AI 大模型翻译:DeepSeek,注册充值获取 API Key 后填入 菜单-翻译设置-DeepSeek,翻译质量更佳、成本极低。

      使用 DeepSeek 时请在设置面板取消勾选 Thinking 复选框,否则需较大的 max token。

    • 或使用本地离线翻译 M2M100(内置),首次使用会自动下载模型,无需代理。

  6. 修改翻译渠道后,重试时请勾选主界面的 清理已生成,避免使用已缓存的失败结果;如仍异常,可删除软件目录下 tmp/translate_cache/ 缓存。

请查阅相关文档:

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