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

2602**b8 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\translate_srt.py", line 47, in trans

File "videotrans\translator\_runner.py", line 71, in run

File "videotrans\translator\_base.py", line 79, in run

File "videotrans\translator\_base.py", line 117, 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)')))
trk=[TranslateSrt]: uuid='eeade61df0', proxy_str='http://127.0.0.1:7897', cfg=[TaskCfgSTS]
原始输入文件名: D:/Baasir/Documents/_video_out/We Tried China's WORST Products-mp4/en.srt,
输出结果保存到文件夹: D:/论文版/参考文献/win-pyvideotrans-v4.16-1/output/translate
翻译渠道:Google(免费),原始语言:en,目标语言:zh-cn, 已选 发送完整字幕
代理地址:http://127.0.0.1:7897, precent=1, hasend=False, should_recogn=False, should_trans=True, should_dubbing=False, should_hebing=False, out_format=0


=
system:Windows-10-10.0.19045-SP0
version:v4.16
frozen:True
language:zh_CN
root_dir:D:/win-pyvideotrans-v4.16-1

1 Replies

#1 DeepSeek reply at 1 hour ago

这是代理配置问题。您的网络代理地址 http://127.0.0.1:7897 未正确工作或代理软件未正常运行,导致与微软翻译服务器(edge.microsoft.com)的 HTTPS 连接在 TLS 握手阶段被中断。另外,您选择了“Google(免费)”,Google 不可用时软件会自动切换到微软翻译,而微软翻译同样走了该代理,因此也报错。

解决方法:

  1. 确认代理软件已启动,且监听端口为 7897(常用 Clash 等工具),或直接清空主界面“对齐控制”行右侧的“代理”文本框后重试。
  2. 若需使用代理,请先测试浏览器能否正常访问 https://edge.microsoft.com;如果浏览器可访问但软件不行,可能是软件代理设置异常,尝试更换代理端口或使用系统代理。
  3. 建议更换为国内可直连的翻译渠道(如 DeepSeek、腾讯翻译、百度翻译),或在高级选项中将“传统翻译渠道每批字幕行数”设为 1,降低请求频率。
  4. 若确认代理可用但仍报错,请在软件根目录创建 edgetts-noproxy.txt 空文件(仅影响 Edge-TTS,微软翻译不适用),并重新尝试其他渠道。

请查阅相关文档:

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