S3 Not Valid errror / Access Denied / Request is not yet valid

0

Hi All,

Good morning. This is my first time posting and I'm hoping someone can help me out... Today, my uploads stopped working and I'm getting an error that refrences server times... any idea why this is happening all of a sudden (its worked flawless up until today and no changes have been made on my side)

Error while uploading file to AWS. Please contact administrator.[Error Code AccessDenied /Code Message>Request is not yet valid /Message> <X-Amz-Date>... ....</X-Amz-Date Expires>2021-12-29T14:41:13Z Expires><ServerTime>2020-12-28T14:41:13Z</ServerTime>]

ANY help would be greatly apprecited

Edited by: 401admin on Dec 28, 2020 7:50 AM

Edited by: 401admin on Dec 28, 2020 7:51 AM

asked 3 years ago487 views
3 Answers
0

Hi, I'm getting the same error probably from Yesterday, too . Have you found the reason for the error?

answered 3 years ago
0

I was having the same issue and found the solution, its looks like in your code to make request to AWS and to provide current dateTime , you may be using YYYY instead of yyyy.

Since its last week of calendar and if you using YYYY it will return year as 2021 , so use yyyy it will return actual year 2020.

Update date on both header :
X-Amz-Credential and X-Amz-Date.

answered 3 years ago
0

Thank you for the info, this makes perfect sense.

Edited by: 401admin on Dec 30, 2020 1:10 PM

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions