#5123 videotrans.configure.excepts.TranslateSrtError: url error, please check url! For details, see: https://help.aliyun.com/z

2409:8a5c* Posted at: 3 hours ago

url error, please check url! For details, see: https://help.aliyun.com/zh/model-studio/error-code#error-url:Traceback (most recent call last):
File "videotrans\translator\_base.py", line 72, in run
File "videotrans\translator\_base.py", line 142, 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 421, in exc_check
tenacity.RetryError: RetryError[]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\__init__.py", line 858, in run
File "videotrans\translator\_base.py", line 75, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_qwenmt.py", line 79, in _item_task
videotrans.configure.excepts.TranslateSrtError: url error, please check url! For details, see: https://help.aliyun.com/zh/model-studio/error-code#error-url


=
system:Windows-10-10.0.19045-SP0
version:v4.00
frozen:True
language:zh
root_dir:E:/voice/win-pyvideotrans-v4.00-528

1 Replies

url error 表示软件尝试访问阿里百炼的 API 地址时连接失败。
最常见原因是 菜单 → 翻译设置 → 阿里百炼 面板中填写的 Base URLAPI Key 不正确。

解决方法

  1. 打开 菜单 → 翻译设置 → 阿里百炼,确认 API 地址 填写为:
    https://dashscope.aliyuncs.com/compatible-mode/v1
    注意不要遗漏末尾的 /v1,且不能有多余空格或符号。
  2. 确认 API Key 已正确填入(可在阿里云百炼控制台获取)。
  3. 如果使用了代理,请先尝试清空主界面的“网络代理”框,因为国内可直接访问阿里云。
  4. 修改后重新点击“翻译视频或音频”的 开始执行 按钮。

若仍报错,请提供软件 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: ko-fi.com/jianchang512

Related resource