
# APIG.0301报错处理方法
如果在调用API时返回错误信息与错误码：
- "error_msg":"Incorrect IAM authentication information: decrypt token fail","error_code":"APIG.0301"，是因为token解密失败。 ![](https://support.huaweicloud.com/ocr_faq/zh-cn_image_0000002024738662.png "点击放大")
  "error_msg":"Incorrect IAM authentication information: x-auth-token not found","error_code":"APIG.0301"，请求header中未添加X-Auth-Token。
  ![](https://support.huaweicloud.com/ocr_faq/zh-cn_image_0000002062251265.png "点击放大")
  "error_msg":"Incorrect IAM authentication information: token expires, expires_at: xxx","error_code":"APIG.0301"，是因为Token过期。
  ![](https://support.huaweicloud.com/ocr_faq/zh-cn_image_0000002026064228.png "点击放大")
  解决方案：
  1. 请检查token是否过期。
  
  2. 获取token的方法，请求体信息是否填写正确，token是否正确完整。
  
  3. 获取token的环境与调用的环境是否一致是否跨区。
  
  4. 检查账号权限，是否欠费，被冻结等。
   
- "error_msg":"Incorrect IAM authentication information: verify aksk signature fail","error_code":"APIG.0301"，是因为AK/SK认证失败。 解决方案：
  1. 请检查AK/SK是否正确，AK对应的SK错误，不匹配；AK/SK中多填了空格。
  
  2. AK/SK频繁出现鉴权出错，连续错误5次以上，被锁定5分钟（5分钟内，则一直认为其是异常的鉴权请求），5分钟后解锁重新认证。
  
  3. 检查账号权限，是否欠费，被冻结等。
   
 
