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

104.28* Posted at: 22 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

这个报错核心是程序在向阿里云的自定义API地址发起 HTTPS 请求时,TLS 握手被服务器端中断(返回 EOF),常见原因包括:系统时间不准确、代理干扰、或该 API 地址/密钥配置方式不正确。

请依次排查:

  1. 检查系统时间:确保系统日期、时间和时区都正确。时间偏差过大会导致 SSL 证书验证失败或握手异常。
  2. 关闭或正确配置代理

    • 在主界面的“网络代理”输入框中,如果填写了代理地址,请先清空保存后重试。
    • 如果使用科学上网工具,请关闭或换用未代理的线路,因为代理可能无法正确处理该阿里云域名的 HTTPS 流量。
  3. 检查 API 地址配置

    • 你日志中的 URL 类似 https://llm-7wvhgkpu1bdestdd.cn-beijing.maas.aliyuncs.com/compatible-mode/v1?sk=sk-xxx,其中 ?sk=sk-xxx 不应写在 URL 里,API Key 应填写在软件对应渠道的“密钥/SK”输入框中,而不是拼接到 API 地址末尾。
    • 请核对渠道设置中填写的 API 地址和密钥,去掉 URL 中多余的查询参数,确认地址只保留到 /compatible-mode/v1 这类基础路径。
  4. 测试网络连通性:在命令行执行 curl -I https://llm-7wvhgkpu1bdestdd.cn-beijing.maas.aliyuncs.com,如果能正常返回 HTTP 头,说明网络可达;如果同样出现 EOF,则可能是该域名在所在网络环境下被阻断或不稳定。
  5. 重启软件后重试:关闭软件并重启,避免残留缓存影响连接。

如果以上步骤都无法解决,请提供该识别渠道的设置截图以及 logs/ 目录下最新日志,以便进一步定位。

请查阅相关文档:

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