Why Is an Error Message with Error Code "APIG.0301" Displayed When an API Is Called?
There are two possibilities to check:
- The message is "Incorrect IAM authentication information: decrypt token fail" and the error code is "APIG.0301", the token fails to decrypt.
The token has expired.
The method and request body for obtaining the token are correct and whether the token is correct and complete.
The environment for obtaining the token is consistent with the environment for calling the token.
The account is in arrears or frozen.
- The message is "Incorrect IAM authentication information: verify aksk signature fail" and the error code is "APIG.0301", the AK/SK-based authentication fails.
The AK/SK pair is correct. For example, check if the SK corresponding to the AK is incorrect or if there is an extra space in the AK/SK pair.
There are frequent AK/SK-based authentication errors. If an AK/SK pair fails to be authenticated more than five times in a row, the AK/SK pair is locked for 5 minutes. If this happens, all AK/SK-based authentication requests will be rejected until the 5 minutes is up. After the 5 minutes is up, the AK/SK pair is unlocked and re-authenticated.
The account is in arrears or frozen.
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.