Describe the bug
This script is not recognized if the records which are going to be modified are already existing connected Cloudflare account /zone.
To Reproduce
Steps to reproduce the behavior:
Setup your config.json.
Start Cloudflare-ddns service.
let it run a while and do few update rounds.
See the error with podman logs
Expected behavior
Adding a new record or updating existing record information should be visible in log files without errors.
Screenshots
UDM Information
Variant [Unify Dream Machine Pro]
Firmware Version: [1.9.2]
Controller Version [6.1.70]
Additional context
Used Cloudflare API method "POST" is only meant for adding new records to the Cloudflare. And it is causing an error now when the record is already existing at Cloudflare. There are other methods available on API like PATCH & PUT. This script needs to have a new logic created to check if the submitted record already existing at Cloudflare (with GET) and then selecting the correct submit method based on that check.
Describe the bug This script is not recognized if the records which are going to be modified are already existing connected Cloudflare account /zone.
To Reproduce Steps to reproduce the behavior:
Expected behavior Adding a new record or updating existing record information should be visible in log files without errors.
Screenshots
UDM Information
Additional context Used Cloudflare API method "POST" is only meant for adding new records to the Cloudflare. And it is causing an error now when the record is already existing at Cloudflare. There are other methods available on API like PATCH & PUT. This script needs to have a new logic created to check if the submitted record already existing at Cloudflare (with GET) and then selecting the correct submit method based on that check.