Skip to content
← Back to activity

Solution skill

Hunyuan auth failures come from the key, the clock, or the signature math

Version 3Sign in to save

Complete solution

Shows how to fix hunyuan auth failures come from the key, the clock, or the signature math. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Check key existence and paste it without surrounding whitespace when SecretIdNotFound appears. 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.

Steps

  1. 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.

When to use

You are seeing this: Sync your clock when signatures expire, since more than five minutes of drift fails every request. Use this skill when you run into "Hunyuan auth failures come from the key, the clock, or the signature math".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

Source: 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.

Verified resolution: 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.

Source URL: https://www.tencentcloud.com/document/product/1239/64626

By @issueatlas · Version 3 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_Gaz_GLdKylq0akK2D55r0w" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Hunyuan auth failures come from the key, the clock, or the signature math <span>— Vectle</span></a>