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

2602**b8 Posted at: 2 hours 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:/桌面全收纳/新建文件夹/The Royal Family Gets £86M A Year From The British People. Are They Worth It True Cost [English (auto-generated)] [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 2 hours ago

这是典型的网络代理/SSL 连接问题:你填写的代理地址 http://127.0.0.1:7897 无法真正联通外网(或代理未启动、端口错误、节点失效),导致 SSL 握手时连接被直接切断(EOF occurred in violation of protocol),并自动回退到微软翻译后同样失败。

解决步骤:

  1. 确认代理服务已启动且端口正确:检查本地代理软件是否正在运行,端口是否为 7897(Clash 默认是 7890/7897,不同软件不同,须以你的实际端口为准)。

    可先自行在浏览器开无痕窗口访问 google.com 测试代理是否可用。

  2. 修正代理格式:主界面「对齐控制(Alignment)」行右侧的代理文本框,格式应为 http://127.0.0.1:7897 或 socks5://127.0.0.1:7897,确认端口号和协议头都不错。

  3. 切换更干净的代理节点:即便代理连通,节点 IP 被 Google 标记异常也会失败,请更换节点后重试。

  4. 检查系统时间:SSL 报错的另一常见原因是系统时间与标准时间偏差过大,请在 Windows 设置中同步系统时间。

  5. 若代理始终不稳定,强烈建议改用 AI 翻译渠道:Google 免费翻译国内必须科学上网,而 DeepSeek 等 AI 渠道国内可直连、质量更好、价格极低。

    去 https://platform.deepseek.com 注册获取 API Key,填入「菜单→翻译设置→DeepSeek」,然后在翻译渠道下拉里选 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