K0p1-Git / cloudflare-ddns-updater

Dynamic DNS (DDNS) service based on Cloudflare! Access your home network remotely via a custom domain name without a static IP! Written in pure BASH~
MIT License
1.33k stars 372 forks source link

Could not route to /client/v4/zones/XXXX/dns_records, perhaps your object identifier is invalid?" #61

Closed egpgit closed 1 year ago

egpgit commented 1 year ago

Hi, Thanks for your script, but Im having some problems making it works. I setted the variables like zone_identifier, record_name, auth_email, auth_key but it doesn't work.

I get this message in syslog:

DDNS Updater: Check Initiated
DDNS Updater: 105.5.186.29 example.example.es DDNS updated.

But the record doesn't change in cloudflare, so I write "set -x" at the begining of the script and I saw the problem: When the script try crul command to get the zones it get an error: [[ {"result":null,"success":false,"errors":[{"code":7003,"message":"Could not route to /client/v4/zones/example.es/dns_records, perhaps your object identifier is invalid?"}],"messages":[]} == *\"\c\o\u\n\t\"\:\0* ]]

Note: I changedd the Ip and the domain for private reasons.

egpgit commented 1 year ago

I have the answer, My error was that I putted the zone name and I needed to put the ID of the zone