I'm trying to get cloudflare setup for my ddns since I have a domain I pay for. My existing no-ip ddns setup has been working just fine. As the script runs, it checks the listed IP of my domain, sees it doesn't match my local IP, and goes to update cloudflare's record. I'm using the api token I generated that reads zone.zone, and edits zone.dns. I'm getting errors on the update authentication, and I don't know whether it's a script problem, a credential problem, or a cloudflare problem.
I'm using username: Bearer and password: api token
115703 : Update needed - L: 'myrealboyipaddress' <> R: '123.123.123.123' 115703 : parsing script '/usr/lib/ddns/update_cloudflare_com_v4.sh' 115703 : #> /usr/bin/curl -RsS -o /var/run/ddns/cloudflare_ipv4.dat --stderr /var/run/ddns/cloudflare_ipv4.err --capath /etc/ssl/certs --noproxy '*' --header 'X-Auth-Email: Bearer' --header 'X-Auth-Key: ***PW***' --header 'Content-Type: application/json' --request GET 'https://api.cloudflare.com/client/v4/zones?name=mydomainipayfor.com' 115709 WARN : CloudFlare reported an error: 115709 : {"success":false,"errors":[{"code":6003,"message":"Invalid request headers","error_chain":[{"code":6102,"message":"Invalid format for X-Auth-Email header"},{"code":6103,"message":"Invalid format for X-Auth-Key header"}]}],"messages":[],"result":null} 115709 ERROR : IP update not accepted by DDNS Provider 115710 : Waiting 600 seconds (Check Interval)