timothymiller / cloudflare-ddns

🎉🌩️ Dynamic DNS (DDNS) service based on Cloudflare! Access your home network remotely via a custom domain name without a static IP!
https://timknowsbest.com/free-dynamic-dns
GNU General Public License v3.0
3.13k stars 328 forks source link

Error sending 'GET' request #196

Open Vattar opened 2 months ago

Vattar commented 2 months ago

Hello everyone!!

I’ve been facing some issues with the container for a few weeks now, and I can’t seem to resolve them! I hope someone can give me some guidance on what I might be doing wrong.

🕰️ Updating IPv4 (A) & IPv6 (AAAA) records every 300 seconds 😡 Error sending 'GET' request to 'https://api.cloudflare.com/client/v4/zones/': {"success":false,"errors":[{"code":500,"message":"An unknown API error occurred."}],"messages":[],"result":null} 😡 Error sending 'GET' request to 'https://api.cloudflare.com/client/v4/zones/': {"success":false,"errors":[{"code":500,"message":"An unknown API error occurred."}],"messages":[],"result":null} 🧩 IPv6 not detected via 1.1.1.1, trying 1.0.0.1 🧩 IPv6 not detected via 1.0.0.1. Verify your ISP or DNS provider isn't blocking Cloudflare's IPs. 😡 Error sending 'GET' request to 'https://api.cloudflare.com/client/v4/zones/***': {"success":false,"errors":[{"code":500,"message":"An unknown API error occurred."}],"messages":[],"result":null}

From time to time, these error messages appear in the log. The container is installed on Unraid in host network mode, with access to both IPv4/6 and normally reaching Cloudflare's DNS addresses.

I am using the Cloudflare API Token with the following settings:

Permissions: ZONE > DNS > EDIT Zone Resources: ALL ZONES

-> config.json (The file format is set up to monitor and update two different domain names)

{
  "cloudflare": [
    {
      "authentication": {
        "api_token": "*********************************"
      },
      "zone_id": "********************",
      "subdomains": [
        {
          "name": "",
          "proxied": true
        }
      ]
    },
    {
      "authentication": {
        "api_token": "**********************************"
      },
      "zone_id": "**********************", 
      "subdomains": [
        {
          "name": "",
          "proxied": true
        }
      ]
    }
  ],
  "a": true,
  "aaaa": true,
  "purgeUnknownRecords": false,
  "ttl": 300
}
lukeallister commented 2 months ago

Same here. It just started erroring for me, saying

cloudflare-ddns  | 🧩 IPv4 not detected via 1.1.1.1, trying 1.0.0.1
cloudflare-ddns  | 🧩 IPv4 not detected via 1.0.0.1. Verify your ISP or DNS provider isn't blocking Cloudflare's IPs.
cloudflare-ddns  | 😡 Error sending 'GET' request to 'https://api.cloudflare.com/client/v4/zones