When I performed aws-sdk in js to populate my dynamoDb, I got the following error message:
Error { InvalidSignatureException: Signature not yet current: 20170816T155301Z is still later than 20170816T090758Z (201
70816T085258Z + 15 min.)
message: 'Signature not yet current: 20170816T155301Z is still later than 20170816T090758Z (20170816T085258Z + 15 min.
)',
code: 'InvalidSignatureException',
time: 2017-08-16T15:53:03.261Z,
requestId: '8NSAR81QCFOQJICPRLD4J7PSO3VV4KQNSO5AEMVJF66Q9ASUAAJG',
statusCode: 400,
retryable: false,
retryDelay: 24.613745619215656 }
Solution:
Apparently, my local machine clock is ahead aws server'. After I updated from 20170816T155301Z to 20170816T090758Z. Everything works fine.
Note: If using vm hosted on hyper-v, we have to disable Time synchronization as well or the date time won't be changed.
Step 1. Right-click your vm
Step 2. Select Settings
Step 3. Find Integration Service then uncheck "Time Synchronization"
留言
張貼留言