AWS Signature Version 4 Credential Scope Issue

0

Hi, I am receiving the following error message from AWS Signature V4

"Date in Credential scope does not match YYYYMMDD from ISO-8601 version of date from HTTP: '20221227' != '20211227', from '20211227T060649Z'."

My application had been working perfectly for the last 6 months and then all of a sudden stopped on 2021-12-26. The troubleshooting page HERE does discuss this issue, but the dates in my error message appear to match and no other changes had been made. Has anyone else experienced, or is experiencing this?

2 個答案
2
已接受的答案

Quoting from the post

"Date in Credential scope does not match YYYYMMDD from ISO-8601 version of date from HTTP: '20221227' != '20211227', from '20211227T060649Z'."

and

..., but the dates in my error message appear to match and no other changes had been made.

It appears there is a date mismatch.

The year does not seem to be matching: 20221227

Would recommending checking again to confirm if there is any application bug related to year handling and then reaching out to AWS support if the issue persists.

AWS
已回答 2 年前
profile pictureAWS
專家
已審閱 2 年前
  • Thank you!!! Silly error, I was using YYYY and not yyyy to parse my date.

0

Interesting. AWS checks for this first checks for x-amz-date header or query parameter, and then if that's not there for a date header.

Is the time stamp in UTC and in the following ISO 8601 format: YYYYMMDD'T'HHMMSS'Z' without milliseconds?

I haven't seen anything yet, but would be curious if something changed as well.

jsonc
已回答 2 年前

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

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

回答問題指南