sterrenb / flutterhole

A third party Android application for the Pi-Hole® dashboard.
https://play.google.com/store/apps/details?id=sterrenburg.github.flutterhole
MIT License
400 stars 27 forks source link

Query Log not loading #128

Open gorillap opened 3 years ago

gorillap commented 3 years ago

Query log not loading. Occasionally will load, but rarely. Looking at log, it calls on the Admin/api.php but loads 0B each time. There appears to be an inconvenient workaround for this by changing to results from the default 100 to 10. This is occuring on my phone and tablet. Screenshot_20210102-030509 Uploaded log here Log

INeedCaffeine commented 3 years ago

I'm also seeing this on my phone. If additional logs would help just let me know.

mellingham commented 3 years ago

Same issue pihole 5.2.4 and flutterhole 5.2.3

sterrenb commented 3 years ago

This might be due to a change in the Pi-hole API, since it works locally on Pi-hole v5.1.1. Idea for now: look into API compatibility for the most recent Pi-hole web (currently v5.3.2).

gorillap commented 3 years ago

I am currently using the latest version of PiHole and Flutterhole 5.2.3 The issue appears to be resolved.

INeedCaffeine commented 3 years ago

It works for me now on both of my PiHoles as well. I'm running PiHole 5.2.4 and Flutterhole 5.2.3 (build 641)

TheBishopOfSoho commented 3 years ago

I'm on latest versions of everything on 2 separate installs of pihole and 5.2.3 of flutterhole and still see this issue

Walter-Maus commented 3 years ago

Still the same issue. I'm on PiHole 5.2.4 and FlutterHole 5.2.3

INeedCaffeine commented 3 years ago

This happened twice to me over the past 5 days.

Changing the size to 10 and then back to 100 managed to get it working again.

I checked both of my PiHoles ~5-10 more times after each failure but could not force it to reproduce consistently. I will keep trying to reproduce it now that I have seen it on the latest version of everything.

Both of my PH are running 5.2.4.

scottpageindysoft commented 3 years ago

Looks like a pagination issue in the client. I noticed the same, can get 10 but no more.

gorillap commented 3 years ago

This is continuing for me. Im not seeing a pattern other than it will work normally for a short period, then back to the same issue, but will sometimes work with a maximim of 10.

sterrenb commented 3 years ago

Quick update: my guess is that the client struggles with the delayed responses from the Pi-hole. My own Raspberry Pi sadly passed away in 2020, but once I set up a new one with Pi-hole, I will try and work on some bug fixes.

You can locally verify that your Pi-hole properly works by running this in a browser:

// with max value
http://pi.hole/admin/api.php?getAllQueries=5&auth=<token>
// without max value (this could take a while)
http://pi.hole/admin/api.php?getAllQueries&auth=<token>
galaxyrun commented 3 years ago

Are there any updates regarding this issue?

sterrenb commented 3 years ago

No progress yet! I am hoping that the new API will expose a new query log endpoint with pagination.