acmesh-official / acme.sh

A pure Unix shell script implementing ACME client protocol
https://acme.sh
GNU General Public License v3.0
38.67k stars 4.91k forks source link

dns.la api获取domain_id错误 #4785

Open OPPO9008 opened 1 year ago

OPPO9008 commented 1 year ago

Steps to reproduce

.acme.sh/acme.sh --issue --dns dns_la -d "**.xyz" -d "*.**r.xyz" --debug 2

Debug log

First detect the root zone
[Mon 04 Sep 2023 10:57:24 PM CST] https://api.dns.la/api/domain.ashx?cmd=get&apiid=ddsfggrthrthga555&apipass=kzZSeQL9Fkm77yJ&rtype=json&domain=_acme-challenge.****.xyz
[Mon 04 Sep 2023 10:57:24 PM CST] GET
[Mon 04 Sep 2023 10:57:24 PM CST] url='https://api.dns.la/api/domain.ashx?cmd=get&apiid=*****&apipass=******&rtype=json&domain=_acme-challenge.****.xyz'
[Mon 04 Sep 2023 10:57:24 PM CST] timeout=
[Mon 04 Sep 2023 10:57:24 PM CST] Http already initialized.
[Mon 04 Sep 2023 10:57:24 PM CST] _CURL='curl --silent --dump-header /root/.acme.sh/http.header  -L  --trace-ascii /tmp/tmp.5yWpXIeUKv  -g '
[Mon 04 Sep 2023 10:57:24 PM CST] ret='0'
[Mon 04 Sep 2023 10:57:24 PM CST] response='{"status":{"code":501,"name":"域名不存在","message":"该域名不存在!","request_time":"2023-09-0410:55:18",,'
[Mon 04 Sep 2023 10:57:24 PM CST] https://api.dns.la/api/domain.ashx?cmd=get&apiid=*********&apipass=**********&rtype=json&domain=******.xyz
[Mon 04 Sep 2023 10:57:24 PM CST] GET
[Mon 04 Sep 2023 10:57:24 PM CST] url='https://api.dns.la/api/domain.ashx?cmd=get&apiid=*******&apipass=******&rtype=json&domain=******.xyz'
[Mon 04 Sep 2023 10:57:24 PM CST] timeout=
[Mon 04 Sep 2023 10:57:24 PM CST] Http already initialized.
[Mon 04 Sep 2023 10:57:24 PM CST] _CURL='curl --silent --dump-header /root/.acme.sh/http.header  -L  --trace-ascii /tmp/tmp.5yWpXIeUKv  -g '
[Mon 04 Sep 2023 10:57:25 PM CST] ret='0'
[Mon 04 Sep 2023 10:57:25 PM CST] response='{"status":{"code":300,"name":"操作成功","message":"","request_time":"2023-09-0410:55:18",,"data":{"domainid":6640797,"userid":451118,"domainname":"********.xyz","grade":"免费套餐","domain_status":"正常","domain_active":"yes","groupid":0,"nsstate":"正常","createtime":"2022-06-0306:56:04",,'
[Mon 04 Sep 2023 10:57:25 PM CST] _domain_id='{"code"'
[Mon 04 Sep 2023 10:57:25 PM CST] _sub_domain='_acme-challenge'
[Mon 04 Sep 2023 10:57:25 PM CST] _domain='*******.xyz'
[Mon 04 Sep 2023 10:57:25 PM CST] Adding record
[Mon 04 Sep 2023 10:57:25 PM CST] https://api.dns.la/api/record.ashx?cmd=create&apiid=****&apipass=*********&rtype=json&domainid={"code"&host=_acme-challenge&recordtype=TXT&recorddata=****************_4&recordline=
[Mon 04 Sep 2023 10:57:25 PM CST] GET
[Mon 04 Sep 2023 10:57:25 PM CST] url='https://api.dns.la/api/record.ashx?cmd=create&apiid=*******&apipass=**********&rtype=json&domainid={"code"&host=_acme-challenge&recordtype=TXT&recorddata=*******************_4&recordline='
[Mon 04 Sep 2023 10:57:25 PM CST] timeout=
[Mon 04 Sep 2023 10:57:25 PM CST] Http already initialized.
[Mon 04 Sep 2023 10:57:25 PM CST] _CURL='curl --silent --dump-header /root/.acme.sh/http.header  -L  --trace-ascii /tmp/tmp.5yWpXIeUKv  -g '
[Mon 04 Sep 2023 10:57:25 PM CST] ret='0'
[Mon 04 Sep 2023 10:57:25 PM CST] response='{"status":{"code":321,"name":"参数传递错误","message":"域名ID或域名至少填写一个","request_time":"2023-09-0410:55:19",,'
[Mon 04 Sep 2023 10:57:25 PM CST] Add txt record error.
[Mon 04 Sep 2023 10:57:25 PM CST] Error add txt for domain:_acme-challenge.********.xyz
[Mon 04 Sep 2023 10:57:25 PM CST] _on_issue_err
[Mon 04 Sep 2023 10:57:25 PM CST] Please add '--debug' or '--log' to check more details.
[Mon 04 Sep 2023 10:57:25 PM CST] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh
github-actions[bot] commented 1 year ago

Please upgrade to the latest code and try again first. Maybe it's already fixed. acme.sh --upgrade If it's still not working, please provide the log with --debug 2, otherwise, nobody can help you.

cnssl commented 1 year ago

has been modified, will update in a few days

jethu256 commented 1 month ago

https://github.com/acmesh-official/acme.sh/pull/4786/files
这个是修复过的 为什么不合并进去呢?