#6679 [xiaomi] 无法连接到 https://api.xiaomimimo.com/v1/,可能当前网络不可访问该API, 若是本地服务,请确认已部署并启动Connection error.:Traceback (most recent c

120.245.**0 Posted at: 2 hours ago

[xiaomi] 无法连接到 https://api.xiaomimimo.com/v1/,可能当前网络不可访问该API, 若是本地服务,请确认已部署并启动
Connection error.:Traceback (most recent call last):
File "httpx\_transports\default.py", line 101, in map_httpcore_exceptions
File "httpx\_transports\default.py", line 250, in handle_request
File "httpcore\_sync\connection_pool.py", line 216, in handle_request
File "httpcore\_sync\connection_pool.py", line 196, in handle_request
File "httpcore\_sync\http_proxy.py", line 317, in handle_request
File "httpcore\_sync\http11.py", line 383, in start_tls
File "httpcore\_backends\sync.py", line 152, in start_tls
File "contextlib.py", line 153, in exit
File "httpcore\_exceptions.py", line 14, in map_exceptions
httpcore.ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1017)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "openai\_base_client.py"
......
File "httpx\_client.py", line 979, in _send_handling_redirects
File "httpx\_client.py", line 1014, in _send_single_request
File "httpx\_transports\default.py", line 249, in handle_request
File "contextlib.py", line 153, in exit
File "httpx\_transports\default.py", line 118, in map_httpcore_exceptions
httpx.ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1017)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\translator\_openaicompat.py", line 83, in _item_task
File "openai\_utils\_utils.py", line 298, in wrapper
File "openai\resources\chat\completions\completions.py", line 1215, in create
File "openai\_base_client.py", line 1332, in post
File "openai\_base_client.py", line 1072, in request
openai.APIConnectionError: Connection error.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\_runner.py", line 67, in run
File "videotrans\translator\_base.py", line 71, in run
File "videotrans\translator\_base.py", line 209, in _run_srt
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\_openaicompat.py", line 85, in _item_task
videotrans.configure.excepts.StopTask: [xiaomi] 无法连接到 https://api.xiaomimimo.com/v1/,可能当前网络不可访问该API, 若是本地服务,请确认已部署并启动
Connection error.


=
system:Windows-10-10.0.26200-SP0
version:v4.09
frozen:True
language:zh
root_dir:C:/Ai/TTSpyVideoTrans-v4.09-0816

1 Replies

#1 DeepSeek reply at 2 hours ago

这是 SSL 证书校验失败导致的连接中断,通常由系统根证书缺失、代理拦截或本地安全软件干扰引起。

解决步骤:

  1. 检查系统时间是否为当前正确时间,时间偏差过大也会导致证书校验失败。
  2. 如果在软件内配了代理(设置 -> 代理),请清空代理框后保存;若开着 VPN/代理工具,尝试关闭或更换节点后再试。
  3. 运行 Windows Update 更新系统根证书,或手动下载安装最新根证书更新包。
  4. 临时关闭防火墙/安全软件后重试,确认是否为拦截所致。
  5. 若仍无法解决,可切换其他翻译渠道使用,例如 DeepSeek、Google 翻译等,小米 AI 渠道并非必需。

请查阅相关文档:

Thinking...
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

Related resource