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

gefragt vor 3 Jahren494 Aufrufe
3 Antworten
0

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

beantwortet vor 3 Jahren
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.

beantwortet vor 3 Jahren
0

Thank you for the info, this makes perfect sense.

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

beantwortet vor 3 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen