Cloudflare DDNS update results in error

Issue #179 invalid
Paul Marroquin created an issue

Related to Issue #141

Netgear R7000 running FreshTomato Firmware 2021.8 K26ARM USB AIO-64K

Expected behavior: Saving DDNS config with force update results in CloudFlare IP change

Errors:
Tomato DDNS config page: “Last Result” is “GET returned HTTP error code 400”.
DDNS log ( nvram set debug_ddns=1 , tail -n 40 /tmp/mdu-cloudflare.txt ):

H GET /client/v4/zones/(zone ID)/dns_records?type=A&name=(hostname)&order=name&direction=asc HTTP/1.1
H Host: api.cloudflare.com
H Accept: /
H X-Auth-Email: (email address)
H X-Auth-Key: (API key)
H Content-Type: application/json
H
=I TLSv1.3 (IN), TLS handshake, Newsession Ticket (4)
=I TLSv1.3 (IN), TLS handshake, Newsession Ticket (4)
<H HTTP/1.1 400 Bad Request
<H Date: Tue, 28 Dec 2021 00:47:45 GMT
<H Content-Type: application/json
<H Transfer-Encoding: chunked
<H Connection: keep-alive
<H CF-Ray: 6c46c7725ab17aba-LAX
<H Set-Cookie: __cflb=0H28vgHxwvgAQtjUGU4vq74ZFe3sNVUZZpRzqmhWWEy; SameSite=Lax; path=/; expires=Tue, 28-Dec-21 03:17:46 GMT; HttpOnly
<H CF-Cache-Status: DYNAMIC
<H Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
<H Set-Cookie: __cfruid=2e3c1a3c0c170a6a4e46fe98b5f512b66972111e-1640652465; path=/; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None
<H Server: cloudflare
<H
<D 4d
<D {"success":false,"errors":[{"code":10000,"message":"Authentication error"}]}<D
<D 0
<D

Comments (4)

  1. edrikk

    Works for me. Same setup, only with VPN build.

    Your error message shows “authentication error” so you may want to check your info entries such as email address, zone ID, and API key.

  2. Log in to comment