Signature expired: is now earlier than error : InvalidSignatureException

后端 未结 10 2235
滥情空心
滥情空心 2020-12-05 04:45

I am trying a small example with AWS API Gateway and IAM authorization. The AWS API Gateway generated the below Endpoint :

https://xyz1234.execute-api.us-e         


        
相关标签:
10条回答
  • 2020-12-05 05:06

    I was making AWS API requests from a VM on my local machine. I checked the date was correct and was syncing, but I was still getting the error above. I halted and re-upped my VM and the error went away. I never figured out the exact cause, but "turning it off and back on again" fixed it.

    0 讨论(0)
  • 2020-12-05 05:08

    Faced similar issue when I use timedatectl command to change datetime of underlying machine... Explanation given by MikeD & others are really informative to fix the issue....

    sudo apt install ntp
    sudo apt install ntpdate
    sudo ntpdate ntp.ubuntu.com
    

    After synchronizing time with correct current datetime, this issue will be resolved

    0 讨论(0)
  • 2020-12-05 05:08

    For those who face this issue while running Lambda functions (that use other AWS services like DynamoDB) locally with sam local invoke: The time in docker container, used by sam, may not be in sync with host. Restarting your docker on host (Docker Desktop on Windows) should resolve this issue.

    0 讨论(0)
  • 2020-12-05 05:13

    Make sure your PC's clock is set correctly. I faced the same issue and then realized my clock wasn't showing the right time due to some reason. As soon as I corrected the time, it started working fine again! Hope this helped.

    0 讨论(0)
提交回复
热议问题