#7940 Secure connection failed, check system time or network settingsTraceback (most recent call last):

2409**b6b9 Posted at: 1 hour ago

Secure connection failed, check system time or network settings
Traceback (most recent call last):
File "urllib3\connectionpool.py", line 464, in _make_request
File "urllib3\connectionpool.py", line 1093, in _validate_conn
File "urllib3\connection.py", line 790, in connect
File "urllib3\connection.py", line 969, in _ssl_wrap_socket_and_match_hostname
File "urllib3\util\ssl_.py", line 480, in ssl_wrap_socket
File "urllib3\util\ssl_.py", line 524, in _ssl_wrap_socket_impl
File "ssl.py", line 513, in wrap_socket
File "ssl.py", line 1104, in _create
File "ssl.py", line 1375, in do_handshake
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:1017)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "urllib3\connectionpool.py", line 787, in urlopen
File "urllib3\connectionpool.py", line 488, in _make_request
urllib3.exceptions.SSLError: EOF occurred in violation of protocol (_ssl.c:1
......
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=[TransCreate]: uuid='ae17924c17', proxy_str=None, cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/Administrator/Videos/剪好的/sdsssssss.mp4,
输出结果保存到文件夹: C:/Users/Administrator/Desktop/sdsssssss-mp4,
临时文件夹: D:/翻译软件/win-pyvideotrans-v4.15/tmp/17796/ae17924c17
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), tiny, 发音语言: 英语,
翻译渠道:微软(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕 , precent=12, hasend=False, should_recogn=True, should_trans=True, should_dubbing=False, should_hebing=True, is_copy_video=True, video_codec_num=264, ignore_align=False, is_audio_trans=False, clone_ref='', should_recogn2=False, do_diarize=True
trk.cfg=[TaskCfgVTT]当前工作模式: 翻译视频 单视频模式
原始输入文件名: C:/Users/Administrator/Videos/剪好的/sdsssssss.mp4,
输出结果保存到文件夹: C:/Users/Administrator/Desktop/sdsssssss-mp4,
临时文件夹: D:/翻译软件/win-pyvideotrans-v4.15/tmp/17796/ae17924c17
已选 清理已存在
未启用CUDA加速
未选 降噪
语音识别:faster-whisper(内置), tiny, 发音语言: 英语,
翻译渠道:微软(免费),原始语言:英语,目标语言:简体中文, 已选 发送完整字幕
未选 配音角色,不进行配音
字幕: 嵌入硬字幕
video_duration_ms=108816


=
system:Windows-10-10.0.19045-SP0
version:v4.15
frozen:True
language:zh_CN
root_dir:D:/翻译软件/win-pyvideotrans-v4.15

1 Replies

#1 DeepSeek reply at 1 hour ago

这是访问微软免费翻译接口(edge.microsoft.com)时 TLS 握手失败,报错 SSLEOFError: EOF occurred in violation of protocol,并非软件本身缺陷,通常是网络环境或系统时间异常导致。

常见原因及排查步骤:

  1. 系统时间/时区错误(报错文本已提示):右键任务栏时间 → 调整日期和时间 → 开启"自动设置时间",或手动校准为正确时间后重试。
  2. 代理冲突:软件主界面「对齐控制(Alignment)」行右侧有网络代理输入框,如果你填写了代理:

    • 国内翻译接口一般无需走代理;若填写了无法连接的代理,所有请求都会失败。
    • 请将该框清空,保存后重试;或者确认代理服务已在运行、端口正确(正确格式如 http://127.0.0.1:10808)。
  3. 网络/防火墙拦截:edge.microsoft.com 为微软在线服务,检查杀毒软件、防火墙或公司网络是否拦截了对该域名的 HTTPS 访问;可尝试切换网络(如手机热点)验证。
  4. 该免费接口临时不可用:微软免费接口本身存在频率限制和偶发性故障,可稍后重试。

推荐替代方案(更稳定):

  • 改用 DeepSeek 翻译:登录 https://platform.deepseek.com/ 充值(可充 1 元)获取 API Key,填入 菜单-翻译设置-DeepSeek,翻译渠道下拉选择 DeepSeek,质量优于微软免费接口。
  • 或改用 Google翻译(国内需科学上网)。
  • 或使用 M2M100(内置) 完全离线翻译(首次使用自动下载模型)。

请查阅相关文档:

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