-
-
Notifications
You must be signed in to change notification settings - Fork 781
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
Error reading PiHole stats #317
Comments
If it helps you any, I just looked at my own, and it seems to be working fine, and from looking through the API JSON results, the format and data points haven't changed in a long time so in theory should still be parsing fine by default. |
Ugh. As I suspect, its again something something CORS something misconfiguration headers. Any advice on how to debug that? |
CORS issues are my bane as well debugging and I am afraid my knowledge on working around them is limited. I wonder though, are you using a reverse proxy internally for your hostnames? if so it may perhaps work better if you call the PiHole by it's IP address directly. |
Sure I do, nginx (with wather limited configuration options). Calling through http://IP would cause mixed content error. |
I could easily have my web tools mixed up, but im pretty sure you can call http://IP:port i think, if that helps. |
Likely related to this PR cc @bastienwirtz we should finalize on a |
For anyone needing to diagnose this CORS issue, this thread may solve part of the problem temporarily: https://discourse.pi-hole.net/t/add-domain-to-authorized-hostnames-permanently/32007/2. To summarise, you can modify, the As for the SyntaxError you will see, after some poking, it is the beginning of an error from Pi-hole that reads: Edit: Fixed Typos |
Pihole at https://dns.mydomain.tld/api.php returns valid-looking json:
Yet homer/PiHole.vue fails with
SyntaxError: Unexpected token F in JSON at position 0 PiHole.vue:71
The text was updated successfully, but these errors were encountered: