DDCLIENT 3.9.1 | "code":6003,"message":"Invalid request headers","error_chain"

Hello,

I am running DDCLIENT 3.9.1 on ubuntu 18 LTS.

ddclient.conf:


# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf

daemon=1800
syslog=yes
protocol=cloudflare
use=web
ssl=yes
login=cloudflare email account
password=API TOKEN
zone=DOMAIN.TLD
sub.DOMAIN.TLD

Not able to dynamically updated DNS:

ddclient -daemon=0 -verbose -noquiet

CONNECT:  checkip.dyndns.org
CONNECTED:  using HTTP
SENDING:  GET / HTTP/1.0
SENDING:   Host: checkip.dyndns.org
SENDING:   User-Agent: ddclient/3.9.1
SENDING:   Connection: close
SENDING:   
SENDING:   
RECEIVE:  HTTP/1.1 200 OK
RECEIVE:  Content-Type: text/html
RECEIVE:  Server: DynDNS-CheckIP/1.0.1
RECEIVE:  Connection: close
RECEIVE:  Cache-Control: no-cache
RECEIVE:  Pragma: no-cache
RECEIVE:  Content-Length: 105
RECEIVE:  
RECEIVE:  <html><head><title>Current IP Check</title></head><body>Current IP Address: "PUBLIC_IP"</body></html>
WARNING:  skipping update of sub.DOMAIN.TLD from <nothing> to "PUBLIC_IP".
WARNING:   last updated <never> but last attempt on Wed Jul 14 11:00:19 2021 failed.
WARNING:   Wait at least 5 minutes between update attempts.
[email protected]:~# rm /var/cache/ddclient/ddclient.cache 
[email protected]:~# ddclient -daemon=0 -verbose -noquiet
CONNECT:  checkip.dyndns.org
CONNECTED:  using HTTP
SENDING:  GET / HTTP/1.0
SENDING:   Host: checkip.dyndns.org
SENDING:   User-Agent: ddclient/3.9.1
SENDING:   Connection: close
SENDING:   
SENDING:   
RECEIVE:  HTTP/1.1 200 OK
RECEIVE:  Content-Type: text/html
RECEIVE:  Server: DynDNS-CheckIP/1.0.1
RECEIVE:  Connection: close
RECEIVE:  Cache-Control: no-cache
RECEIVE:  Pragma: no-cache
RECEIVE:  Content-Length: 105
RECEIVE:  
RECEIVE:  <html><head><title>Current IP Check</title></head><body>Current IP Address: "PUBLIC_IP"</body></html>
INFO:     forcing updating sub.DOMAIN.TLD because no cached entry exists.
INFO:     setting IP address to "PUBLIC_IP" for sub.DOMAIN.TLD
UPDATE:   updating sub.DOMAIN.TLD
CONNECT:  api.cloudflare.com
CONNECTED:  using SSL
SENDING:  GET /client/v4/zones?name=DOMAIN.tld HTTP/1.0
SENDING:   Host: api.cloudflare.com
SENDING:   User-Agent: ddclient/3.9.1
SENDING:   Connection: close
SENDING:   X-Auth-Email: cloudflare account email
SENDING:   X-Auth-Key: API-TOKEN
SENDING:   Content-Type: application/json
SENDING:   
RECEIVE:  HTTP/1.1 400 Bad Request
RECEIVE:  Date: Wed, 14 Jul 2021 15:07:11 GMT
RECEIVE:  Content-Type: application/json
RECEIVE:  Connection: close
RECEIVE:  CF-Ray: 66eba8c27f2a2251-MIA
RECEIVE:  Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
RECEIVE:  Expires: Sun, 25 Jan 1981 05:00:00 GMT
RECEIVE:  Set-Cookie: __cflb=0H28vgHxwvgAQtjUGU4vq74ZFe3sNVUZWrAKLJ2XRSV; SameSite=Lax; path=/; expires=Wed, 14-Jul-21 17:37:12 GMT; HttpOnly
RECEIVE:  Strict-Transport-Security: max-age=31536000
RECEIVE:  CF-Cache-Status: DYNAMIC
RECEIVE:  Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
RECEIVE:  Pragma: no-cache
RECEIVE:  X-Content-Type-Options: nosniff
RECEIVE:  X-Frame-Options: SAMEORIGIN
RECEIVE:  Set-Cookie: __cfruid=346ebf9ddd85f7e7b6f0c17d6a4b83338a7ecc2f-1626275231; path=/; domain=.api.cloudflare.com; HttpOnly; Secure; SameSite=None
RECEIVE:  Server: cloudflare
RECEIVE:  
RECEIVE:  {"success":false,"errors":[{"code":6003,"message":"Invalid request headers","error_chain":[{"code":6103,"message":"Invalid format for X-Auth-Key header"}]}],"messages":[],"result":null}

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.