Error 9022 on my ddns

Hi! I have set up cloudflare_ddns_updater from github (K0p1-Git) it was working amaizing for around 6 months and now i am expiriencing some problem… the script is giveing me error: 9022, {“result”:null,“success”:false,“errors”:[{“code”:9022,“message”:“TTL must be a number, not a string.”}],“messages”:}… Can someone please help me fix it?

Hi eduardsozolins100 !
In your code, you can change field ttl to number, example:
$(curl -s -X PATCH “https://api.cloudflare.com/client/v4/zones/$zone_identifier/dns_records/$record_identifier
-H “X-Auth-Email: $auth_email”
-H “$auth_header $auth_key”
-H “Content-Type: application/json”
–data “{"type":"A","name":"$dns_update","content":"$ip","ttl":"$ttl","proxied":${proxy}}”)

—> change

https://api.cloudflare.com/client/v4/zones/$zone_identifier/dns_records/$record_identifier
-H “X-Auth-Email: $auth_email”
-H “$auth_header $auth_key”
-H “Content-Type: application/json”
–data “{"type":"A","name":"$dns_update","content":"$ip","ttl":$ttl,"proxied":${proxy}}”)

1 Like

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