Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

APIGEE UTC timestamp issue

Hi 

We require to implement AWS Signature for integrating with AWS (using opdk 4.51)

 We have followed the below approach. 
https://github.com/ajaymahale/Apigee-Java-AWSV4-Signature 

However, we are getting timestamp error from policy.

{

    "message": "Signature not yet current: 20230418T104652Z is still later than 20230418T065153Z (20230418T064653Z + 5 min.)"

}

APIGEE server located in timezone of GMT + 4 .

Any suggestions or help? 

Regards

Sujith

6 REPLIES 6

Check your timezone configuration. It looks like your time is off by 4 hours?

Server is located in GMT+4 timezone.

It is correct timezone . 

Again, it looks like the timezone is setup incorrectly.

If you run command "date" on the machine where the MP is running, what's the output?

IMG-20230419-WA0025.jpg

Please find attached the screenshot from server .

That looks correct then.

First, use the latest version and the original repo:

https://github.com/DinoChiesa/Apigee-Java-AWSV4-Signature

Second, you may need to debug/fix the date and time related code here 

https://github.com/DinoChiesa/Apigee-Java-AWSV4-Signature/blob/main/callout/src/main/java/com/google...

yes it seems the callout is assuming your server is set to UTC.  I've fixed that and updated the repo.