Help Center> Optical Character Recognition> FAQs> Error Code> How Do I Handle the Error APIG.0301?
Updated on 2023-10-26 GMT+08:00

How Do I Handle the Error APIG.0301?

There are two possibilities to check:

  • If error message "Incorrect IAM authentication information: decrypt token fail" and error code "APIG.0301" are displayed, the token fails to decrypt.

    Solution:

    (1) Check whether the token has expired.

    (2) Check whether the request body is correct and whether the token is correct and complete.

    (3) Check whether the environment where the token is obtained is the same as that where the token is invoked.

    (4) Check whether the account is in arrears or frozen.

  • If error message "Incorrect IAM authentication information: verify aksk signature fail" and error code "APIG.0301" are displayed, AK/SK fails to authenticate.

    Solution:

    (1) Check whether the AK/SK pair is correct. The SK corresponding to the AK is incorrect. An extra space is entered in the AK/SK pair.

    (2) AK/SK authentication errors occur frequently. If an AK/SK pair fails to be authenticated for more than five consecutive times, the AK/SK pair is locked for 5 minutes (the AK/SK autentication is considered as an abnormal authentication request within 5 minutes). After 5 minutes, the AK/SK pair is unlocked and re-authenticated.

    (3) Check whether the account is in arrears or frozen.

Error Code FAQs

more