Giter VIP home page Giter VIP logo

Comments (6)

tiredofit avatar tiredofit commented on August 17, 2024

Do you have any reference to the changed API? We should be pinned to using the old v4 API especially with a certain version of the cloudflare python module. I'd like to investigate more.

from docker-traefik-cloudflare-companion.

StefanArts avatar StefanArts commented on August 17, 2024

To be honest, I am not completely sure where the error occurs.
The only information I found regarding this is the following post:
https://community.cloudflare.com/t/error-9022-on-my-ddns/666726
I assumed this was the same problem, as the post is from a few days ago and I am using cloudflare-companion with the default value for ttl on a fresh setup.

API Reference for creating a zone specifies that the ttl value has to be a number:

ttl

Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones.

(From https://developers.cloudflare.com/api/operations/dns-records-for-a-zone-create-dns-record)

from docker-traefik-cloudflare-companion.

kmdm avatar kmdm commented on August 17, 2024

I would guess/venture that changing L100 to this would fix it:

'ttl': int(os.environ.get("{}_TTL".format(k), DEFAULT_TTL)),

from docker-traefik-cloudflare-companion.

burnbrigther avatar burnbrigther commented on August 17, 2024

watching this eagerly. I'm getting this as well.

from docker-traefik-cloudflare-companion.

morganzero avatar morganzero commented on August 17, 2024

Same here as well! 9022 TTL must be a number, not a string.

from docker-traefik-cloudflare-companion.

morganzero avatar morganzero commented on August 17, 2024

Do you have any reference to the changed API? We should be pinned to using the old v4 API especially with a certain version of the cloudflare python module. I'd like to investigate more.

Line 181 in install/usr/sbin/cloudflare-companion. Try changing: u'ttl': domain_info['ttl'], to u'ttl': int(domain_info['ttl']),

from docker-traefik-cloudflare-companion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.