-
-
Notifications
You must be signed in to change notification settings - Fork 563
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
API text on README doesn't explain authencation is needed #2521
Comments
You need to add This behavior was changed last year. It was announced in November (as you already noticed) and December Release Notes (under "Pi-hole Web changes"). |
Just to make it clear: The behavior you saw is the correct one. |
Agree there's a documentation problem. But I think there's a code error as well. If auth is required, the response shouldn't be Also, from the announcement, the parameter to include is |
Yeah... sorry.
Which URL are you using exactly? |
Sorry I had a problem on my end with cURL. I'm able to get it working now. So I'd say the only issue now is the documentation and the false |
This issue is stale because it has been open 30 days with no activity. Please comment or update this issue or it will be closed in 5 days. |
I second the request for a better error code than 200 when authentication is required but no token supplied. It wasn't apparent why I was getting an empty response with a 200 code. Receiving 401 (or 403 if the token was wrong) would have made it clear what was wrong. |
Versions
Platform
Expected behavior
The api should work as documented in README.
Actual behavior / bug
Calling
/admin/api.php
as indicated in the readme page returns[]
Steps to reproduce
Steps to reproduce the behavior:
curl http://localhost/admin/api.php
Additional context
I noticed there's an additional post about upcoming changes with additional authorization requirements, but there is no indication from the response that authorization is required. And when I include authorization (
?summary&auth=[token]
) I get the same[]
result.Also the additional info link from the readme leads to a page that reiterates no authorization is necessary for "summary (default if no parameters are given)".
The following api call works:
The text was updated successfully, but these errors were encountered: