#7036 安全连接失败,请检查系统时间或网络设置,如果使用了代理,请关闭后重试urllib3.exceptions.SSLError: EOF occurred in violation of protocol (_ssl.c:1017)

107.173**7 Posted at: 59 minutes ago

安全连接失败,请检查系统时间或网络设置,如果使用了代理,请关闭后重试
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\only_one.py", line 89, in run
File "videotrans\task\_stage_translate.py", line 31, in trans
File "videotrans\translator\_runner.py", line 67, in run
File "videotrans\translator\_base.py", line 68, 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 39, 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)')))

cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/SYF/Videos/RAIN RFID for Inventory Management: improve retail inventory accuracy [eAqF8G_JFkw].mkv,
输出结果保存到文件夹: C:/Users/SYF/Videos/_video_out/RAIN RFID for Inventory Management: improve retail inventory accuracy [eAqF8G_JFkw]-mkv,
临时文件夹: D:/tool/win-pyvideotrans-v4.11/tmp/8600/a9329eff89
已选 清理已存在
已启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), large-v3, 发音语言: 英语, 断句方式:默认断句
翻译渠道:微软(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入软字幕
代理地址:http://127.0.0.1:10808


=
system:Windows-10-10.0.26100-SP0
version:v4.11
frozen:True
language:zh
root_dir:D:/tool/win-pyvideotrans-v4.11

1 Replies

#1 DeepSeek reply at 59 minutes ago

核心原因是网络连接层面出现 SSL 握手失败,尤其您当前填写了代理地址 http://127.0.0.1:10808,若该代理服务并未正常运行,或该代理对 edge.microsoft.com 的访问产生了干扰,就会触发此报错;同时微软翻译免费接口官方已变更,稳定性下降。

请按以下顺序排查:

  1. 检查代理:确认本机代理服务是否确实在运行、端口 10808 是否正确。若不需要代理,请直接清空主界面“对齐控制”行右侧的代理文本框并保存,然后重试。
  2. 改用其他翻译渠道:微软翻译接口现在已不稳定,建议切换到更可靠的渠道:

    • DeepSeek:质量高、价格低,注册 https://platform.deepseek.com/ 获取 API Key,填写到 菜单-翻译设置-DeepSeek,翻译渠道选 DeepSeek
    • Google 翻译(免费):国内需要使用科学上网,若代理正常也可尝试。
    • M2M100(内置本地):无需联网,首次使用时在线下载模型到 软件目录/models/m2m100_12b,适合离线使用。
  3. 重试:若已关闭代理但仍报错,请确认系统时间是否正确(证书校验依赖系统时间),然后重新选中 清理已生成 后再次执行。

请查阅相关文档:

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