#7653 翻译字幕阶段出错 [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

这是网络代理导致的 SSL 连接中断。

你使用了 Google 翻译并配置了代理 http://127.0.0.1:7897,Google 翻译失败后按 v4.14 逻辑自动回退到微软翻译,但微软翻译的请求同样经由该代理转发时被中断(SSLEOFError),说明代理节点无法稳定建立 HTTPS 连接。

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

  1. 检查代理服务是否正在运行,端口 7897 是否正确。

    若代理软件已关闭或端口变更,清空主界面对齐行右侧的代理文本框后重试。

  2. 切换代理节点或更换代理工具。

    当前节点对 translate.googleapis.com、edge.microsoft.com 的 HTTPS 握手不稳定,换一个干净节点再试。

  3. 若无法稳定使用代理,直接更换翻译渠道(推荐,无需代理且质量更好):

    • 首选 DeepSeek:到 https://platform.deepseek.com/ 注册充值(可只充 1 元),获取 API Key,填入 菜单-翻译设置-DeepSeek,然后翻译渠道下拉选 DeepSeek。

    • 或者使用 M2M100(内置) 本地翻译,完全离线,首次使用会在线下载模型(存放于 软件目录/models/m2m100_12b)。

  4. 检查系统时间是否准确。

    SSL 证书校验依赖系统时间,时间偏差过大会直接导致握手失败。

请查阅相关文档:

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