Using this plugin you have displayed your Amazon storage file folder in the frontend of your site page, and sometimes you notice that your Amazon files/folders do not appear on the front site page and you see an access denied message on this page you seem to think that this is a problem with this plugin, but it is not. This error message appears after the end of your Amazon storage service, therefore you see this error message when you visit that page after the date of expiration of your service.
Steps To Follow If Files Are Not Downloading & Displaying Access Denied Message
Step 1: Amazon S3 returns this error message when you try to access a presigned URL past the specified expiration date of the URL.
Sate 2: 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>
For more information, you can check the guide directly at amazon https://aws.amazon.com/premiumsupport/knowledge-center/request-has-expired-s3-object/
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.
Generate A New Presigned URL:
Generate a pre-signed URL for the Amazon S3 object. This is anyone who receives a pre-signed URL to retrieve the S3 object with an HTTP GET request. This area needs to be explicitly configured for Sigv4 requests.
To create a pre-signed URL with the default one hour lifetime that links to an object in an S3 bucket
The following presign command generates a pre-signed URL for a specified bucket and key that is valid for one hour:
aws s3 presign s3://awsexamplebucket/test2.txt
To create a pre-signed URL with a custom lifetime that links to an object in an S3 bucket
The following presign command generates a pre-signed URL for a specified bucket and key that is valid for one week:
aws s3 presign s3://awsexamplebucket/test2.txt --expires-in 604800
Tags: s3 presigned url access denied, aws s3 presigned url access denied, presigned url access denied, access denied request has expired, aws request has expired, presigned url s3 access denied, s3 signed url access denied, request has expired aws s3, aws presigned url access denied, s3 access denied when downloading file
Subscribe to our newsletter below and never miss the latest updates or an exclusive offer.