When I try to access an S3 object, I get the error "Request has expired." Why?

2 minute read

I'm trying to access an object in Amazon Simple Storage Service (Amazon S3), but I'm getting the error message "Request has expired." How can I fix this?


Amazon S3 returns this error message when you try to access a presigned URL past the specified expiration date of the URL.

For example, in the following response, the expiration date of the presigned URL is October 28, 2022. You'll get an error message if you try to access this URL after that date.

    <Message>Request has expired</Message>

To resolve this issue, the owner of the object must generate a new presigned URL with a new expiration date. If you own that object, see presign or Sharing objects using presigned URLs for more information.

Note: The presigned URL might expire before the configured expiration date. This is because the AWS Identity and Access Management (IAM) entity STS token has expired before the presigned URL expiration date. For more information about STS session duration, see Comparing the AWS STS API operations.

Related information

Generating a presigned URL to upload an object

AWS OFFICIALUpdated a year ago