Open dyc12389 opened 4 months ago
使用alidns运行,阿里云返回. message: Specified signature is not matched with our calculation.
python3 run.py
{ "$schema": "https://ddns.newfuture.cc/schema/v2.8.json", "debug": false, "dns": "alidns", "id": "SOME ID", "index4": "default", "index6": "default", "ipv4": [], "ipv6": [ "SOME DOMAIN" ], "proxy": null, "token": "SOME KEY", "ttl": null }
DDNS[ ${BUILD_VERSION}@${BUILD_DATE} ] run: posix linux Configuration was loaded from <== /home/dyc/code/DDNS/config.json ========================= Mon Jul 1 14:59:58 2024 ========================= 2024-07-01 14:59:58,456 48@/home/dyc/code/DDNS/util/cache.py [DEBUG] load cache data from /tmp/ddns.cache 2024-07-01 14:59:58,457 154@run.py [DEBUG] Cache is empty.
Mon Jul 1 14:59:58 2024 SOME.DOMAIN(AAAA) ==> SOME.IP [via DIRECT] 2024-07-01 14:59:58,457 148@/home/dyc/code/DDNS/dns/alidns.py [DEBUG] >>>>>SOME.DOMAIN(AAAA) 2024-07-01 14:59:58,457 58@/home/dyc/code/DDNS/dns/alidns.py [DEBUG] AccessKeyId=SOME.ID&Action=GetMainDomainName&Format=json&InputString=SOME.DOMAIN&SignatureMethod=HMAC-SHA1&SignatureNonce=2ee3ae61-0e81-4bf1-88f9-723484e5883d&SignatureVersion=1.0&Timestamp=2024-07-01T06%3A59%3A58Z&Version=2015-01-09 2024-07-01 14:59:58,457 60@/home/dyc/code/DDNS/dns/alidns.py [DEBUG] signString: POST&%2F&AccessKeyId%3DSOME.ID%26Action%3DGetMainDomainName%26Format%3Djson%26InputString%3DSOME.DOMAIN%26SignatureMethod%3DHMAC-SHA1%26SignatureNonce%3D2ee3ae61-0e81-4bf1-88f9-723484e5883d%26SignatureVersion%3D1.0%26Timestamp%3D2024-07-01T06%253A59%253A58Z%26Version%3D2015-01-09 2024-07-01 14:59:58,457 77@/home/dyc/code/DDNS/dns/alidns.py [INFO] alidns.aliyuncs.com: {'Action': 'GetMainDomainName', 'InputString': 'SOME.DOMAIN, 'Format': 'json', 'Version': '2015-01-09', 'AccessKeyId': 'SOME.ID', 'Timestamp': '2024-07-01T06:59:58Z', 'SignatureMethod': 'HMAC-SHA1', 'SignatureNonce': UUID('2ee3ae61-0e81-4bf1-88f9-723484e5883d'), 'SignatureVersion': '1.0', 'Signature': b'FlN3FKX+04imngRyp2VNIuN+tSU='} 2024-07-01 14:59:59,403 91@/home/dyc/code/DDNS/dns/alidns.py [WARNING] GetMainDomainName : error[400]: {"RequestId":"31C34347---84C3-8DDB41E706EF","Message":"Specified signature is not matched with our calculation. server string to sign is:POST&%2F&AccessKeyId%3DSOME.ID%26Action%3DGetMainDomainName%26Format%3Djson%26InputString%3DSOME.DOMAIN%26SignatureMethod%3DHMAC-SHA1%26SignatureNonce%3D2ee3ae61-0e81-4bf1-88f9-723484e5883d%26SignatureVersion%3D1.0%26Timestamp%3D2024-07-01T06%253A59%253A58Z%26Version%3D2015-01-09","Recommend":"https://api.aliyun.com/troubleshoot?q=SignatureDoesNotMatch&product=Alidns&requestId=31C34347-****-****-84C3-8DDB41E706EF","HostId":"alidns.aliyuncs.com","Code":"SignatureDoesNotMatch"} 2024-07-01 14:59:59,403 81@run.py
描述问题 (Describe the bug)
使用alidns运行,阿里云返回. message: Specified signature is not matched with our calculation.
版本信息 (version info)
复现步骤 (To Reproduce)
python3 run.py
配置文件 (config file)
{ "$schema": "https://ddns.newfuture.cc/schema/v2.8.json", "debug": false, "dns": "alidns", "id": "SOME ID", "index4": "default", "index6": "default", "ipv4": [], "ipv6": [ "SOME DOMAIN" ], "proxy": null, "token": "SOME KEY", "ttl": null }
调试输出 (debug output)
DDNS[ ${BUILD_VERSION}@${BUILD_DATE} ] run: posix linux Configuration was loaded from <== /home/dyc/code/DDNS/config.json ========================= Mon Jul 1 14:59:58 2024 ========================= 2024-07-01 14:59:58,456 48@/home/dyc/code/DDNS/util/cache.py
[DEBUG] load cache data from /tmp/ddns.cache
2024-07-01 14:59:58,457 154@run.py
[DEBUG] Cache is empty.
Mon Jul 1 14:59:58 2024 SOME.DOMAIN(AAAA) ==> SOME.IP [via DIRECT] 2024-07-01 14:59:58,457 148@/home/dyc/code/DDNS/dns/alidns.py
[DEBUG] >>>>>SOME.DOMAIN(AAAA)
2024-07-01 14:59:58,457 58@/home/dyc/code/DDNS/dns/alidns.py
[DEBUG] AccessKeyId=SOME.ID&Action=GetMainDomainName&Format=json&InputString=SOME.DOMAIN&SignatureMethod=HMAC-SHA1&SignatureNonce=2ee3ae61-0e81-4bf1-88f9-723484e5883d&SignatureVersion=1.0&Timestamp=2024-07-01T06%3A59%3A58Z&Version=2015-01-09
2024-07-01 14:59:58,457 60@/home/dyc/code/DDNS/dns/alidns.py
[DEBUG] signString: POST&%2F&AccessKeyId%3DSOME.ID%26Action%3DGetMainDomainName%26Format%3Djson%26InputString%3DSOME.DOMAIN%26SignatureMethod%3DHMAC-SHA1%26SignatureNonce%3D2ee3ae61-0e81-4bf1-88f9-723484e5883d%26SignatureVersion%3D1.0%26Timestamp%3D2024-07-01T06%253A59%253A58Z%26Version%3D2015-01-09
2024-07-01 14:59:58,457 77@/home/dyc/code/DDNS/dns/alidns.py
[INFO] alidns.aliyuncs.com: {'Action': 'GetMainDomainName', 'InputString': 'SOME.DOMAIN, 'Format': 'json', 'Version': '2015-01-09', 'AccessKeyId': 'SOME.ID', 'Timestamp': '2024-07-01T06:59:58Z', 'SignatureMethod': 'HMAC-SHA1', 'SignatureNonce': UUID('2ee3ae61-0e81-4bf1-88f9-723484e5883d'), 'SignatureVersion': '1.0', 'Signature': b'FlN3FKX+04imngRyp2VNIuN+tSU='}
2024-07-01 14:59:59,403 91@/home/dyc/code/DDNS/dns/alidns.py
[WARNING] GetMainDomainName : error[400]: {"RequestId":"31C34347---84C3-8DDB41E706EF","Message":"Specified signature is not matched with our calculation. server string to sign is:POST&%2F&AccessKeyId%3DSOME.ID%26Action%3DGetMainDomainName%26Format%3Djson%26InputString%3DSOME.DOMAIN%26SignatureMethod%3DHMAC-SHA1%26SignatureNonce%3D2ee3ae61-0e81-4bf1-88f9-723484e5883d%26SignatureVersion%3D1.0%26Timestamp%3D2024-07-01T06%253A59%253A58Z%26Version%3D2015-01-09","Recommend":"https://api.aliyun.com/troubleshoot?q=SignatureDoesNotMatch&product=Alidns&requestId=31C34347-****-****-84C3-8DDB41E706EF","HostId":"alidns.aliyuncs.com","Code":"SignatureDoesNotMatch"}
2024-07-01 14:59:59,403 81@run.py