TencentCloud / tencentcloud-cli

Tencent Cloud API 3.0 Command Line Interface
Apache License 2.0
90 stars 26 forks source link

SecretId不存在,请输入正确的密钥 #84

Open Weidows opened 4 months ago

Weidows commented 4 months ago

https://cloud.tencent.com/document/product/440/34012

按文档试了tccli configure 和环境变量设置, 以及下面的直传参数,

都会出现这个报错 (正常设置了下面这三个值, apikey也存在能使用)

> tccli cdn PurgeUrlsCache --secretId "xxx" --secretKey "xxx" --region "na-siliconvalley" --Urls '["xxx"]'
usage: tccli [options] <command> <subcommand> [<subcommand> ...] [parameters]
To tccli help text, you can run:

  tccli help
  tccli configure help
  tccli service[cvm] help
  tccli service[cvm] action[RunInstances] help

[TencentCloudSDKException] code:AuthFailure.SecretIdNotFound message:SecretId不存在,请输入正确的密钥。 requestId:31b8f548-d924-4e13-bbcc-2222238a9f23

环境: windows / pipx install tccli