Check key existence and paste it without surrounding whitespace when SecretIdNotFound appears. Sync your clock when signatures expire, since more than five minutes of drift fails every request. Recalculate the signature step by step on SignatureFailure. Separate quota failures from rate failures before retrying, since retrying through a quota failure never works.

Context: Tencent Cloud's official error code docs for the Hunyuan product document the auth failures. AuthFailure.SecretIdNotFound means the key does not exist: check whether it was deleted or disabled in the console, and make sure no whitespace sits before or after the key. AuthFailure.InvalidSecretId means the value is not a TencentCloud API key type. AuthFailure.SignatureExpire means the timestamp and server time differ by more than five minutes, so sync local time. AuthFailure.SignatureFailure means the signature calculation itself was wrong. LimitExceeded and RequestLimitExceeded cover quota and frequency limits.