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 June 28, 2018. You'll get an error message if you try to access this URL after that date.

<Error>
    <Code>AccessDenied</Code>
    <Message>Request has expired</Message>
    <Expires>2018-06-28T07:13:14Z</Expires>
    <ServerTime>2018-08-06T20:03:02Z</ServerTime>
    <RequestId>87E1D2CFAAA7F9A6</RequestId>
    <HostId>
    A9BEluTV2hk3ltdFkixvQFa/yUBfUSgDjptwphKze+jXR6tYbpHCx8Z7y6WTfxu3rS4cGk5/WTQ=
    </HostId>
</Error>

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 Share an Object with Others for instructions.


Did this page help you? Yes | No

Back to the AWS Support Knowledge Center

Need help? Visit the AWS Support Center

Published: 2018-12-24