rfancn / aliyun-ddns-client

Python DDNS client for Aliyun
402 stars 137 forks source link

MissingTimestamp #13

Closed dingo9 closed 7 years ago

dingo9 commented 7 years ago

hi, I Got MissingTimestamp ERROR, and I found

{"Message":"Timestamp is mandatory for this action.","RequestId":"XXXXXXXXXX","HostId":"dns.aliyuncs.com","Code":"MissingTimestamp"}

It means "MissingTimestamp"....

Since Aug 20, 2017

        commonParams = {
            'Format': 'json',
            'Version': '2015-01-09',
            'AccessKeyId': self.accessKeyId,
            'TimeStamp': self.getTimeStamp(),
            'SignatureMethod': 'HMAC-SHA1',
            'SignatureNonce': self.getSignatureNonce(),
            'SignatureVersion': "1.0",
        }

goes into

        commonParams = {
            'Format': 'json',
            'Version': '2015-01-09',
            'AccessKeyId': self.accessKeyId,
            'Timestamp': self.getTimeStamp(),
            'SignatureMethod': 'HMAC-SHA1',
            'SignatureNonce': self.getSignatureNonce(),
            'SignatureVersion': "1.0",
        }
rfancn commented 7 years ago

Yes, the issue already fixed, please pull the latest codes.