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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则