Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

Flutterhole dashboard unusable with v5.18 of Pihole web interface API #165

Open
sergekh42 opened this issue Dec 25, 2022 · 13 comments
Open

Comments

@sergekh42
Copy link

Describe the bug
Flutterhole does not properly use auth on dashboard screen causing it to be unusable.

To Reproduce
Steps to reproduce the behavior:

  1. Open Dashboard

Expected behavior
Dashboard should load in with data.

Screenshots
Screenshot_20221224-173838

Versions:

Additional context

Pihole web v5.18 requires auth on all API endpoints now except for version and type.
PR that caused this change - pi-hole/web#2411
Pihole release - https://github.com/pi-hole/AdminLTE/releases/v5.18

Since upgrading to the Pihole web v5.18, Flutterhole no longer works. Adding auth to the API endpoints that don't have it should fix the issue. Those are status, summary, summaryRaw, overTimeData10mins

@TheTrueColonel
Copy link

Having the same issue

@LinusHoppe
Copy link

Can confirm

@nomisunrider
Copy link

Also confirming

@cloudycloud47
Copy link

sadly can confirm also.
was working on previous version, then app suggested I upgrade and then after successfully upgrade, app won't validate IP address but will validate API code. :(

@sterrenb
Copy link
Owner

sterrenb commented Dec 31, 2022

Sorry to hear it! I made a quick fix for this on the web branch, but the branch is not published in the Play Store. It isn't quite stable, but seeing as the Pi-hole API is changing this often I doubt it ever will. I'll see if I can at least publish the web branch as a beta build for the time being.

@daisenberg
Copy link

In the interim, the following changes restore functionality. Go to your Pi-hole settings and amend the API path in the Host details section. Please note your host address may be different to http://pi.hole

Change

http://pi.hole/admin/api.php?status

to

http://pi.hole/admin/api.php?status&auth=<TOKEN>

You can get the token from Settings/API/Show API token or from /etc/pihole/setupVars.conf (WEBPASSWORD).

Full guide found here: https://pi-hole.net/blog/2022/11/17/upcoming-changes-authentication-for-more-api-endpoints-required/#page-content

@TheTrueColonel
Copy link

In the interim, the following changes restore functionality. Go to your Pi-hole settings and amend the API path in the Host details section. Please note your host address may be different to http://pi.hole

Change

http://pi.hole/admin/api.php?status

to

http://pi.hole/admin/api.php?status&auth=<TOKEN>

You can get the token from Settings/API/Show API token or from /etc/pihole/setupVars.conf (WEBPASSWORD).

Full guide found here: https://pi-hole.net/blog/2022/11/17/upcoming-changes-authentication-for-more-api-endpoints-required/#page-content

Thank you. This workaround works.

@Anoni-Mouse
Copy link

Screenshot_20230107-133230.jpg

Thanks it worked.

@mix3d
Copy link

mix3d commented Feb 23, 2023

This workaround has addressed the dashboard loading but I'm unable to get the query log page. Does that work for anyone else?

@Jameshudson
Copy link

This workaround has addressed the dashboard loading but I'm unable to get the query log page. Does that work for anyone else?

I can confirm I'm having the same issue. Anyone got it working?

@mix3d
Copy link

mix3d commented Apr 17, 2023

I've mostly just started going to the web API directly. I haven't had time to attempt to fix.

@femto-code
Copy link

Same issue here, any updates?

@mix3d
Copy link

mix3d commented Jun 18, 2023

Project seems abandoned, no maintainers. I don't have the time to learn Flutter and fix it :/
But it also seems like they're waiting for the upcoming (3 years later) API changes to get merged, so that falls in line.
pi-hole/FTL#659

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests