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

[BUG]: Pi-Hole API has changed #38

Open
hrafnkel opened this issue Mar 31, 2023 · 1 comment
Open

[BUG]: Pi-Hole API has changed #38

hrafnkel opened this issue Mar 31, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@hrafnkel
Copy link

Describe the bug
Pi-Hole changed the API
Please see https://pi-hole.net/blog/2022/11/17/upcoming-changes-authentication-for-more-api-endpoints-required/#page-content

To Reproduce
Steps to reproduce the behavior:

  1. Use example flow
  2. Update the API key and user name credentials
  3. ECONNREFUSED is returned, like this;
3/31/2023, 11:37:05 AM[node: 7c83bfa0.af8d9](http://rp3plus:1880/#)
msg.payload : Object
{ status: "offline", error_code: "ECONNREFUSED", name: "admin", pihole: "admin" }

Test to demonstrate Pi-Hole is up and running

  1. Use a suitable text editor to create the URL as specified in the pi-hole notice
  2. Paste URL http://pi.hole/admin/api.php?status&auth=[your key] into browser
  3. Get {"status":"enabled"} back from pi-hole

Expected behavior
I expect to get the "status" back from Pi-Hole when using the example flow provided.

@hrafnkel hrafnkel added the bug Something isn't working label Mar 31, 2023
@naimo84
Copy link
Owner

naimo84 commented Sep 24, 2023

Hey @hrafnkel,

I've completely overseen this issue... sorry for that...

As you can see here: https://github.com/naimo84/pi-hole-remote/blob/main/src/piHoleRemoteApi.ts#L52
Every call I'm sending to pihole contains an authkey. So the problem might be somewhere else?

What do you mean by 1. Use example flow? Unfortunately I don't have an example yet 😉 I can't remember, or I'm unable to find it ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants