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

First start validates the pihole but gives an error #103

Closed kongo09 closed 4 years ago

kongo09 commented 4 years ago

Describe the bug I start the app for the first time, setup my pihole, validate and all is green. The dashboard however shows an error:

{message: fetchSummary failed with unexpected error, error: type '_OneByteString' is not a subtype of type 'int' in type cast}

To Reproduce Steps to reproduce the behavior:

  1. See above

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Versions (please complete the following information):

Additional context Add any other context about the problem here.

sterrenb commented 4 years ago

Hello @kongo09 👋 - Thanks for opening an issue!

The Pi-hole API has had some changes since V5, as a result FlutterHole only supports Pi-hole V5+.

It seems that the error you are getting is the result of this version mismatch (i.e. Pi-hole version 4.3.1). I suggest upgrading you Pi-hole if possible. Hope this helps.

kongo09 commented 4 years ago

Thanks, I did the update to 5.0 and now it works