Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[debug]alidns报签名错误 #442

Open
dyc12389 opened this issue Jul 1, 2024 · 0 comments
Open

[debug]alidns报签名错误 #442

dyc12389 opened this issue Jul 1, 2024 · 0 comments
Labels

Comments

@dyc12389
Copy link

dyc12389 commented Jul 1, 2024

描述问题 (Describe the bug)

使用alidns运行,阿里云返回. message: Specified signature is not matched with our calculation.

版本信息 (version info)

  • DDNS Version: v2
  • OS Version:ubuntu 22.04
  • Type(运行方式): Python3
  • related issues (相关问题):

复现步骤 (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 <cache.load> 48@/home/dyc/code/DDNS/util/cache.py
[DEBUG] load cache data from /tmp/ddns.cache
2024-07-01 14:59:58,457 <run.main> [email protected]
[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 <alidns.update_record> 148@/home/dyc/code/DDNS/dns/alidns.py
[DEBUG] >>>>>SOME.DOMAIN(AAAA)
2024-07-01 14:59:58,457 <alidns.signature> 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 <alidns.signature> 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 <alidns.request> 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 <alidns.request> 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 <run.change_dns_record> [email protected]

@dyc12389 dyc12389 added the bug label Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant