-
Notifications
You must be signed in to change notification settings - Fork 33
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
ALiddns.py不能使用 #8
Comments
很抱歉,SDK版本是另一位贡献者提供的。 |
@shanzhoupeng @XAS-712 之前所出现的这个问题是由于子域名无效,请检查变量 rc_rr 是否正确填写。rc_rr 所允许的值为任意可使用的子域名的全部或一部分(特殊字符仅限 @,为二级域名本身)。并且支持模糊查询,但本脚本并未对模糊查询提供支持(您可以查询所有,会匹配完全相同的子域名,若未找到则直接结束)。 您可以在阿里云官网找到错误码对照表:https://error-center.aliyun.com/status/product/Alidns。 如遇到问题建议使用官方 API 工具进行排查:https://api.aliyun.com/。 |
新提交的代码没有经过完整的测试,只是可以正常更新 DNS, @XAS-712 如果方便能否帮助测试更新、新增 DNS 以及邮件提醒是否正确。 |
该问题已在最近一次 commit 中解决,实际问题出现在子域名错误的填写为了记录类型 rc_type 而非 rc_value。 |
1一些小错误 74行myip()后面少了:
2修复1之后提示
“Traceback (most recent call last):
File "ddns.py", line 133, in
add_dns(rc_rr, rc_domain, rc_type, rc_value, rc_ttl) # 添加 DNS 解析记录
File "ddns.py", line 105, in add_dns
return clt.do_action_with_exception(request) # 发送请求内容
File "/home/pi/.local/lib/python2.7/site-packages/aliyunsdkcore/client.py", line 274, in do_action_with_exception
request_id=request_id)
aliyunsdkcore.acs_exception.exceptions.ServerException: HTTP Status: 400 Error:SubDomainInvalid.Value The DNS record is invalid or in the wrong format. RequestID:
换成非sdk版本之后就能正常使用了 不知道为什么
The text was updated successfully, but these errors were encountered: