#1030 dashscope.common.error.UploadFileException: Get upload certificate failed, code: InvalidApiKey, message: Invalid API-key

61.144* Posted at: 5 days ago 👁23

语音识别阶段出错:Get upload certificate failed, code: InvalidApiKey, message: Invalid API-key provided.[阿里百炼 Qwen3-ASR]:
Traceback (most recent call last):
File "videotrans\recognition\_base.py", line 70, in run
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\task\job.py", line 97, in run
File "videotrans\task\_speech2text.py", line 93, in recogn
File "videotrans\recognition\__init__.py", line 224, in run
File "videotrans\recognition\_base.py", line 72, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\recognition\_qwen3asr.py", line 43, in _exec
File "dashscope\aigc\multimodal_conversation.py", line 87, in call
File "dashscope\aigc\multimodal_conversation.py", line 128, in _preprocess_messages
File "dashscope\utils\oss_utils.py", line 189, in preprocess_message_element
File "dashscope\utils\oss_utils.py", line 178, in check_and_upload
File "dashscope\utils\oss_utils.py", line 159, in check_and_upload_local
File "dashscope\utils\oss_utils.py", line 52, in upload

dashscope.common.error.UploadFileException: Get upload certificate failed, code: InvalidApiKey, message: Invalid API-key provided.

Windows-10-10.0.17763-SP0
version:v3.80
frozen:True
language:zh

1 Replies

本条内容由 gpt-5-mini 回复

问题很可能是 阿里百炼 (Qwen3-ASR) 的 API Key 无效或配置错误(错误信息里已显示:Invalid API-key provided)。请按下面步骤排查并修复:

  1. 直接定位问题(核心判断)

    • 错误 "Get upload certificate failed, code: InvalidApiKey, message: Invalid API-key provided." 明确指向凭证无效/错误/过期或配置字段不对。
  2. 在软件中检查并重填凭证

    • 打开菜单 -> 语音识别设置,确认当前识别通道为 阿里百炼 Qwen3-ASR。
    • 在该界面重新粘贴/填写阿里/百炼提供的 API Key / Secret(或控制台要求的对应字段),注意不要包含多余空格或回车。
  3. 在配置文件里核验(可备份后修改)

    • 打开软件根目录下的 videotrans/params.json,查找与 Qwen3-ASR 相关的凭证字段,确认值与控制台一致。
    • 保存后重启软件再试。
  4. 在服务端控制台检查凭证状态

    • 登录阿里/百炼的管理控制台,确认该 API Key/AccessKey 是否被删除、禁用或已过期,并确认已为对应账号开通了所需的 ASR 上传/调用权限。
    • 若不确定,建议重新创建/重置一对新的 AccessKey 并在软件中替换测试。
  5. 排除其它可能性

    • 如果您的凭证包含地域/endpoint 配置,确认软件中对应的 region/endpoint(如有设置项)与控制台使用的一致。
    • 检查本机时间是否正确(签名类认证对时间敏感)。
  6. 临时绕开以确认软件无其他问题

    • 将识别通道切换为本地模型(如 faster-whisper(本地) 或 openai-whisper(本地))来验证软件语音识别流程是否能正常运行。注意:本地模型首次使用需下载模型文件。
  7. 升级与日志

    • 您当前为 v3.80,建议尝试升级到官方最新预打包 v3.81(如果可行)以排除已修复的问题。
    • 如按上述仍无法解决,请提供位于 软件根目录/videotrans/logs/ 下的最新日志文件(按日期的 .log),我会根据完整日志进一步分析。

如果您愿意上传最近一条日志(videotrans/logs/ 下的最新日期的 .log),我可以继续帮您定位是否有其它异常导致认证请求被拒绝。

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.

Donate: https://ko-fi.com/jianchang512

Trending Questions