#9100 阿里百炼API: Workspace endpoint is invalid.,Traceback (most recent call last):

118.74**5 Posted at: 8 hours ago

阿里百炼API: Workspace endpoint is invalid.,
Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\_runner.py", line 71, in run
File "videotrans\translator\_base.py", line 79, in run
File "videotrans\translator\_base.py", line 117, in _run_text
File "videotrans\translator\_bailian.py", line 72, in _item_task
videotrans.configure.excepts.TranslateSrtError: Workspace endpoint is invalid.


=
system:Windows-10-10.0.26200-SP0
version:v4.20
frozen:True
language:zh_CN
root_dir:D:/AI/win-pyvideotrans-v4.20

1 Replies

#1 DeepSeek reply at 8 hours ago

该报错来自阿里百炼(DashScope)服务端,含义是你填写的 API 地址(endpoint)无效,软件被服务端拒绝,属于配置问题而非软件 bug。

排查步骤:

  1. 打开 菜单 → 翻译设置 → 阿里百炼,检查 API 地址。字幕翻译使用的是 DashScope 兼容接口地址,不要填带 workspace 路径的地址,也不要填控制台的 workspace 页面链接。
  2. 核对 API Key 是否正确、是否已开通百炼服务并有余额。
  3. 核对所选模型与当前任务是否匹配(这是知识库中已记录的同类报错原因):

    • 语音识别必须选 qwen-asr 开头的模型;
    • 字幕翻译必须选纯文本模型,Qwen 的多模态模型不允许用于字幕翻译,这是阿里百炼的限制。
  4. 若地址栏内残留旧版本填写的自定义地址,清空后保存,再重新测试。

若按上述处理仍报同一错误,请提供软件安装目录 logs/ 下最新日志文件中本次报错的完整约 30 行,以及你实际填写的 API 地址和所用模型名,以便进一步判断。

请查阅相关文档:

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