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

2408:8460* Posted at: 10 hours ago

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

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='llm-7wvhgkpu1bdestdd.cn-beijing.maas.aliyuncs.com', port=443): Max retries exceeded with url: /compatible-mode/v1?sk=sk-6af940c783354d338ea0f70b749ff54b (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:2436)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\TestSTT.py", line 18, in run
File "videotrans\recognition\__init__.py", line 206, in run
File "videotrans\recognition\_base.py", line 92, in run
File "videotrans\recognition\_recognapi.py", line 66, in _exec
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='llm-7wvhgkpu1bdestdd.cn-beijing.maas.aliyuncs.com', port=443): Max retries exceeded with url: /compatible-mode/v1?sk=sk-6af940c783354d338ea0f70b749ff54b (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:2436)')))


=
system:Windows-10-10.0.22631-SP0
version:v4.07
frozen:True
language:zh
root_dir:D:/pyVideoTrans/win-pyvideotrans-v4.07

1 Replies

这是由于 HTTPS 安全连接(SSL/TLS 握手)失败导致的,目标地址是阿里云百炼 API。

请按以下顺序排查:

  1. 检查系统时间:确认电脑的日期、时间和时区是否准确,时间偏差过大会导致 SSL 证书校验失败。
  2. 关闭或更正代理:如果开启了系统代理、VPN、Clash 等工具,请先关闭重试;如果确实需要代理,请确认代理地址格式为 http://127.0.0.1:端口号socks5://127.0.0.1:端口号
  3. 清空软件内代理设置:进入软件界面,将「网络代理」文本框清空并保存,避免无效代理干扰国内 API 请求。
  4. 检查网络稳定性:该报错也可能是网络连接被重置导致,可切换网络后重试(例如更换 WiFi/移动热点)。
  5. 重试或更换渠道:这是与阿里云 API 的连接层错误,不是软件逻辑错误,确认网络后再次测试即可。

如果以上步骤仍无法解决,请提供软件安装目录下 logs/ 文件夹中最新的日志文件(复制底部约 30 行报错信息),以便进一步分析。

请查阅相关文档:

Post Your Reply
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

Dondate via PayPal

Related resource