#6192 无法连接到 https://llm-7wvhgkpu1bdestdd.cn-beijing.maas.aliyuncs.com/compatible-mode/v1,可能当前网络不可访问该API, 若是本地服务,请确认已部署并启动Conne

2409:895e* Posted at: 18 hours ago

无法连接到 -beijing.maas.aliyuncs.com/compatible-mode/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\connection.py", line 101, in handle_request
File "httpcore\_sync\http11.py", line 143, in handle_request
File "httpcore\_sync\http11.py", line 113, in handle_request
File "httpcore\_sync\http11.py", line 186, in _receive_response_headers
File "httpcore\_sync\http11.py", line 238, in _receive_event
httpcore.RemoteProtocolError: Server disconnected without sending a response.

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

Traceback (most recent call last):
File "openai\_base_client.py", line 1037, in request
File "openai\_client.py", line 440, in _send_request
File "openai\_client.py", line 418, in _send_with_auth_retry
File "openai\_base_client.py", line 964, in _send_request
File "httpx\_client.py", line 914, in send
File "httpx\_client.py", line 942, in _send_handling_auth
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.RemoteProtocolError: Server disconnected without sending a response.

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

Traceback (most recent call last):
File "videotrans\recognition\_openairecognapi.py", line 37, in _exec
File "videotrans\recognition\_openairecognapi.py", line 97, in _thrid_api
File "openai\_utils\_utils.py", line 298, in wrapper
File "openai\resources\audio\transcriptions.py", line 485, 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\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\_openairecognapi.py", line 80, in _exec
videotrans.configure.excepts.StopTask: 无法连接到 n-beijing.maas.aliyuncs.com/compatible-mode/v1,可能当前网络不可访问该API, 若是本地服务,请确认已部署并启动
Connection error.


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

1 Replies

核心原因:请求已成功建立 TCP 连接,但服务器未返回任何响应直接断开(RemoteProtocolError: Server disconnected)。对于阿里云百炼这种云端 API,通常是 API 地址不正确、API Key 无效或模型名称不支持 导致的鉴权失败/拒绝连接。

请按以下步骤排查:

  1. 核对 API 地址
    阿里云百炼的 OpenAI 兼容地址应为:
    https://dashscope.aliyuncs.com/compatible-mode/v1
    不要使用类似 llm-xxx.cn-beijing.maas.aliyuncs.com/compatible-mode/v1 的专属网关地址,该地址可能已失效或未开通。
  2. 核对 API Key(SK)
    确认你在阿里云百炼平台创建的 API Key 正确、未过期,且账户已开通对应的语音识别模型服务并具有可用余额。
  3. 核对模型名称
    在对应渠道设置中,模型应选择阿里百炼 Qwen3-ASR 支持的值,例如:

    • qwen3-asr-flash
    • qwen3-asr-flash-filetrans
      若模型名填写错误,服务端会直接断开连接。
  4. 清空代理设置
    打开主界面或菜单中的“网络代理”文本框,确保其为空,然后保存。国内阿里云 API 不需要代理,填写无效代理会导致请求失败。
  5. 重启软件后重试
    如果以上均已确认无误,请退出软件并重新打开,再执行一次识别,排除网络瞬断影响。

请查阅相关文档:

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