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

preguntada hace 3 años494 visualizaciones
3 Respuestas
0

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

respondido hace 3 años
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.

respondido hace 3 años
0

Thank you for the info, this makes perfect sense.

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

respondido hace 3 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas