Giter Site home page Giter Site logo

Comments (3)

chitoku-k avatar chitoku-k commented on July 20, 2024

Experiencing a somewhat similar issue here.

The Cloudflare API currently returns an empty list for the query that only consists of TLD. Changing _get_zone_id to send a request by domain seemed to solve the problem.

url = "https://api.cloudflare.com/client/v4/zones?name={0}".format(tld)

to something like:

    url = "https://api.cloudflare.com/client/v4/zones?name={0}".format(domain) 

from letsencrypt-cloudflare-hook.

thoraxe avatar thoraxe commented on July 20, 2024

Similar error myself:

 + CloudFlare hook executing: deploy_challenge
Traceback (most recent call last):
  File "/opt/letsencrypt-cloudflare-hook/hook.py", line 206, in <module>
    main(sys.argv[1:])
  File "/opt/letsencrypt-cloudflare-hook/hook.py", line 203, in main
    ops[argv[0]](argv[1:])
  File "/opt/letsencrypt-cloudflare-hook/hook.py", line 167, in create_all_txt_records
    create_txt_record(args[i:i+X])
  File "/opt/letsencrypt-cloudflare-hook/hook.py", line 105, in create_txt_record
    zone_id = _get_zone_id(domain)
  File "/opt/letsencrypt-cloudflare-hook/hook.py", line 83, in _get_zone_id
    return r.json()['result'][0]['id']
IndexError: list index out of range

This is with a single domain that looks like foo.bar.baz.com

I tried the edit suggested by @chitoku-k but it did not solve the issue for me.

from letsencrypt-cloudflare-hook.

thoraxe avatar thoraxe commented on July 20, 2024

NVM my issue was apparently that Cloudflare had nuked my domain.

from letsencrypt-cloudflare-hook.

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.