Menu
Alexa Web Information Service
Developer Guide

Authentication Errors

If your request cannot be authenticated, you will get an error message explaining the reason.

<Response>
  <Errors>
    <Error>
    <Code>AuthFailure</Code>
    <Message>AWS was not able to validate the provided access credentials</Message>
  </Error>
  </Errors>
  <RequestID>6bbc7909-375e-4bd6-a37f-692ce855c3c0</RequestID>
</Response>   
    

For a complete guide of Auth V4 troubleshooting, please refer to the Troubleshooting AWS Signature Version 4 Errors guide.

The following are some of the most common errors related to problems with V4 signatures:

  • The security token included in the request is invalid: This indicates a problem with the access key for the IAM user.
  • The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details: This indicates a problem with the IAM user AWS secret access key or the signing method.
  • Signature expired: YYYYMMDDTHHMMSSZ is now earlier than YYYYMMDDTHHMMSSZ: This indicates that the signature was generated in the past and is not valida any more.
  • Missing Authentication Token: This indicates the Authorization header is not present in the request.

Please refer to the sample code for a reference on the signing process and steps.