Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Weidows opened this issue Jul 11, 2024 · 1 comment
Open

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

Weidows opened this issue Jul 11, 2024 · 1 comment

Comments

@Weidows
Copy link

Weidows commented Jul 11, 2024

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

@zqfan
Copy link
Member

zqfan commented Feb 8, 2025

这种奇怪的问题可以尝试先卸载tccli和tencentcloud-sdk-python后再重装看看,卸载后可以到安装目录下找找有没有残留的文件。使用pip show tccli可以知道安装目录,重点看下tccli和tencentcloud目录。有时候可能还有tencentcloud-sdk-python-common类似的包安装引起的,可以一并看下。
如果环境上有virtualenv,可以创建虚拟环境,在虚拟环境下安装tccli,这样可以不用卸载破坏系统已有环境。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants