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

已提問 3 年前檢視次數 494 次
3 個答案
0

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

已回答 3 年前
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.

已回答 3 年前
0

Thank you for the info, this makes perfect sense.

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

已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南