Comments (3)
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.
letsencrypt-cloudflare-hook/hook.py
Line 80 in e78005a
to something like:
url = "https://api.cloudflare.com/client/v4/zones?name={0}".format(domain)
from letsencrypt-cloudflare-hook.
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.
NVM my issue was apparently that Cloudflare had nuked my domain.
from letsencrypt-cloudflare-hook.
Related Issues (20)
- On deploy_challenge "IndexError: list index out of range" HOT 12
- Emit a warning upon encountering an unknown hook instead of simply failing HOT 2
- Use 120 seconds TTL instead of 1 HOT 2
- DNS not propagated HOT 13
- Crashes if domain does not exist
- acme/new-authz returns [500] error HOT 1
- ImportError: No module named builtins HOT 1
- KeyError: 'startup_hook' HOT 1
- Problem in the cloudflare hook with new dehydrated client. HOT 1
- ImportError: No module named urllib3.contrib.pyopenssl HOT 2
- Expiration Notices HOT 2
- idna uninstalling HOT 3
- Error after successful run HOT 6
- Error on unknown hooks
- KeyError cloudflare HOT 3
- Getting a 403 error HOT 1
- Add TLSA/DANE record?
- Hook doent work! HOT 4
- HTTPError: 400 Client Error: Bad Request for url: https://api.cloudflare.com/client/v4/zones HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from letsencrypt-cloudflare-hook.