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

188.253**7 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\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]
原始输入文件名: F:/Video2/OnlyFans/20261023/This Ass Is For You - Lissa Aires - EPORNER.srt,
输出结果保存到文件夹: F:/Video2/OnlyFans/20261023
翻译渠道:微软(免费),原始语言: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:/Program Files (x86)/win-pyvideotrans-v4.14

1 Replies

#1 DeepSeek reply at 1 hour ago

该报错是 SSL 握手被中断,根源在网络层:微软免费翻译(edge.microsoft.com)在国内可直连,而你在主界面填写了代理 http://127.0.0.1:7897,请求被代理转发时连接被对端直接断开(EOF),因此握手失败。另外你使用的是 v4.14,微软免费接口后续版本已多次修复。

处理步骤:

  1. 清空代理:在主界面「同步对齐」行右侧的「网络代理」文本框内删除 http://127.0.0.1:7897,保存后重试。微软(免费)、Google(免费)以外的国内 API 均不需代理,微软免费接口尤其不要走代理。
  2. 校正系统时间:SSL 报错也与系统时间偏差过大有关,确认 Windows 时间为自动同步且准确。
  3. 升级版本:升级到 v4.17 完整包(补丁包需覆盖 sp.exe、_internal、videotrans 全部内容),旧版本对微软免费接口的异常处理不完善;升级后若仍不稳定,v4.14 起 Google 失败会自动回退微软,而微软接口本身有限流。
  4. 改用 AI 翻译渠道(推荐):微软、Google 免费接口均有限流与随时失效风险。到 菜单 → 翻译设置 → DeepSeek 填入 API Key(充值 1 元即可),翻译渠道选 DeepSeek,取消设置面板里的 Thinking 复选框,并在翻译行勾选 发送完整字幕,质量与稳定性都优于免费接口。
  5. 若你所在网络确实必须走代理才能访问外网,请换一个节点重试,或改用 socks5://127.0.0.1:7897 格式,并在确认代理稳定后再翻译。

注意:翻译缓存位于 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