Black-/whitelisting does not work on V5 API

Expected Behaviour:

On Pi-hole V4, it was possible to interact with the black- and whitelists using requests like:

http://pi.hole/admin/api.php?list=white&auth=my_token

This returned a JSON representation of your current whitelist. Similar operations were possible for adding/removing from lists.

Actual Behaviour:

Since Pi-hole V5.0.0, the endpoints seem to crash the web server via a HTTP 500 status code. The endpoint is used in the app for Pi-hole I am maintaining. More users are reporting similar errors. This issue is tracked on the FlutterHole GitHub page.

My question: do other users have a working endpoint on their V5 Pi-hole? If not, would it be possible to get it working in V5?

I am aware that a new API is being built, but for now I am curious if the old API is just broken for me or others as well.

FlutterHole white-/blacklisting issue:

New Pi-hole API issue:

Debug Token:

Not applicable

Yes, this is a bug already being reported here:

1 Like

This will be resolved in Pi-hole v5.1.

Check out the following PR for details on what we did:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.