Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloudflare key "" does not match regex "^[a-zA-Z0-9]+$" #705

Open
ThomasHineXYZ opened this issue Apr 30, 2024 · 5 comments
Open

Cloudflare key "" does not match regex "^[a-zA-Z0-9]+$" #705

ThomasHineXYZ opened this issue Apr 30, 2024 · 5 comments

Comments

@ThomasHineXYZ
Copy link

TLDR: Describe your issue in a one liner here

  1. Is this urgent: Yes

  2. DNS provider(s) you use: N/A

  3. Program version: ae4ab39

  4. What are you using to run the container: Docker, through Unraid Community Apps.

  5. Extra information (optional)

Logs:

========================================
========================================
============= ddns-updater =============
========================================
=========== Made with ❤️ by ============
======= https://github.com/qdm12 =======
========================================
========================================

Running version latest built on 2024-04-29T14:30:33.184Z (commit ae4ab39)

🔧 Need help? https://github.com/qdm12/ddns-updater/discussions/new
🐛 Bug? https://github.com/qdm12/ddns-updater/issues/new
✨ New feature? https://github.com/qdm12/ddns-updater/issues/new
☕ Discussion? https://github.com/qdm12/ddns-updater/discussions/new
💻 Email? quentin.mcgaw@gmail.com
💰 Help me? https://www.paypal.me/qmcgaw https://github.com/sponsors/qdm12
2024-04-30T01:08:19-07:00 ERROR key is not valid: key "" does not match regex "^[a-zA-Z0-9]+$"

Configuration file (remove your credentials!):

N/A

Host OS: Unraid 6.12.6

This was running correctly on the previous commit of this. My config file hasn't changed since August 2023.

@ThomasHineXYZ ThomasHineXYZ changed the title Bug: FILL THIS TEXT OR ISSUE WILL BE CLOSED "ERROR key is not valid" with newest commit Apr 30, 2024
@ThomasHineXYZ
Copy link
Author

For now I'm going to pin the version I am hosting to v2,6 instead of latest.

@qdm12
Copy link
Owner

qdm12 commented Apr 30, 2024

Please share your config, are you using the email field? If so you must set the key field as well. That was previously a bug (AFAIK) not validating the key field (fixed from #702)

@qdm12 qdm12 changed the title "ERROR key is not valid" with newest commit Cloudflare key is not valid Apr 30, 2024
@qdm12 qdm12 changed the title Cloudflare key is not valid Cloudflare key "" does not match regex "^[a-zA-Z0-9]+$" May 6, 2024
@ThomasHineXYZ
Copy link
Author

ThomasHineXYZ commented May 10, 2024

Sorry for the delay

{
  "settings": [
    {
      "provider": "cloudflare",
      "zone_identifier": "abc123",
      "domain": "abc123",
      "host": "@",
      "ttl": 600,
      "email": "abc123@gmail.com",
      "token": "abc123",
      "proxied": true
    }
  ]
}

I have the inner part copied 17 times. I have even rebuilt my config file and it still doesn't work on master.

@ThomasHineXYZ
Copy link
Author

It has been running just fine locked on v2.6 since my previous message last week. So it must be some change between release v2.6 and master branch.

@qdm12
Copy link
Owner

qdm12 commented May 12, 2024

Remove the email key. As per the documentation docs/Cloudflare.md if you set an email, you're also expected to set a key. There is no need to set an email for the other authentication methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants