oznu / docker-cloudflare-ddns

A small amd64/ARM/ARM64 Docker image that allows you to use CloudFlare as a DDNS / DynDNS Provider.
https://hub.docker.com/r/oznu/cloudflare-ddns/
GNU General Public License v3.0
1.08k stars 220 forks source link

Invalid CloudFlare Credentials - 400 #59

Closed spicerackk closed 3 years ago

spicerackk commented 3 years ago

I am following the instructions perfectly, I had it working but then had to rebuild the container.

I have created a new API_KEY, pasted that in env using the variable "CLOUDFLAREAPIKEY" and yet I am still getting the above error. I have tried both creating a new token as well as using the global, and even changed the global with neither working.

I am at a loss as to what is going on.

Running in compose.

spicerackk commented 3 years ago

Fixed, was issue in compose file.

balajeek commented 2 years ago

I have the same error, can you tell us what you did to fix this?

matthuisman commented 2 years ago

you may need to do

    environment:
      - "API_KEY=[MY API KEY]"
      - "ZONE=[MY DOMAIN]"
      - "SUBDOMAIN=[MY SUBDOMAIN]"

Note the quotes on either side.

cnavarro1499 commented 2 years ago

This happened to me when where the DDNS provider had the first letter of my email capitalized. (I typically never capitalize my email.) Everything worked once I had my email EXACTLY the same with matching case.