-
Notifications
You must be signed in to change notification settings - Fork 7
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
invalid character '<' looking for beginning of value #28
Comments
Thank you for the issue @rishabhkalra! Very strange indeed. What Pi-Hole version are you running? Seems to be working okay against the nightly build. # docker run --rm -p 8080:80 -e WEBPASSWORD=password --pull always pihole/pihole:nightly
resource "pihole_dns_record" "record" {
domain = "record.com"
ip = "127.0.0.1"
}
provider "pihole" {
url = "http://localhost:8080"
password = "password"
}
terraform {
required_providers {
pihole = {
source = "ryanwholey/pihole"
version = "0.0.9"
}
}
} I run traefik on my cluster at home and pass provider credentials using env vars similar to these
The provider URL is intended to be the I've also got API token auth support (#27) on the horizon which should be easier to manage, but the API still seems to be changing a bit so we will see. |
@ryanwholey Thanks for the prompt reply on this!
I'm on Pi-hole v5.8.1, FTL v5.13, and web interface v5.10.1
That is correct, if I leave it as I can try updating pihole and see if that fixes it 🤔 |
Okay I think I've found a way to reproduce what you're seeing, I believe the domain you're supplying actually resolves to
Can you check your ingress rules and see if this is the case? |
Thanks for looking into this! Turns out that did seem to be the issue. I was adding a prefix of Thanks so much for the help @ryanwholey ! |
happy to help, thank you for testing out the provider! |
I was just trying to automate DNS entry creation as I create VMs.
Error
Details
I've already made sure I'm using the admin password used for logging into pihole (as was stated in #22). Not entirely sure what's going on because I think I've set everything up correctly. I am using a traefik reverse proxy in front of pihole for HTTPS so the url I pass into that variable ends with
/index.php?login
. That was the only way I could get it to not error out trying to connect. I see the following error if I try to omit that bit.The text was updated successfully, but these errors were encountered: