badsgahhl/pihole-browser-extension

Disabled with Err

Closed this issue · 11 comments

Not sure if this is a but or a problem with my system.
PiHole extension displays Err on the task bar icon.
The popup to turn it on/off is off and gray, cannot click and turn it on.
Configuration is correct. IP and API Key is entered correctly and "Connection successful Core: v5.15.3 FTL: v5.20.1 Web: v5.18.3" is displayed.

To Reproduce
See above description

Expected behavior
Expected to click and be able to turn on/off

Screenshots
image
image

Desktop (please complete the following information):

  • OS: Windows V11
  • Browser: Chrome V109
  • Pi OS: Proxmox LCX (Debian)

Additional context
I tried deleting the extension and re-adding but the problem remains.

Hey,
the extension seems to work at my end here with the current pihole version.
To further debug the issue please follow the following steps:

  1. Go to chrome://extensions/
  2. Enable Developer Mode and click on the background.html link of the pihole extension
    image
  3. From here on click onto the network tab in the open window and select one of the periodic network requests.
  4. Click on preview
    image

Please then make a screenshot and submit the result you get there.

image
image

Doublechecked the API Token and it matches Pi-Hole.
I also noticed that the "connection successful" indication does not check for a valid API, it seems to check the IP and the length/format of the API only.

Can u maybe make a screenshot of the "Headers" Section?
image
Actually never saw a "redirector".

I also noticed that the "connection successful" indication does not check for a valid API, it seems to check the IP and the length/format of the API only.

Yes it's a really "basic" check, just to validate the inputs and if the url is correct.

Just from my viewpoint, i would assume that the redirect in your nginx is misconfigured. The extension basically uses the normal JavaScript fetch api for requests, so if you correctly redirect requests via nginx it should be able to resolve them. However it seems that for the Request URL you see there your nginx is doing a request to a route that does not exists.

Is nginx part of pi-hole, chrome, Java?

NGINX is a reverse proxy that is not default part of pihole, it can basically handle web requests or serve websites and is like it seems installed on the machine you installed pihole. I cannot give u further details there, because thats in your hand what you have installed or how you installed pihole at the system. Normally pihole uses something called lightttp to serve its admin site and api, not nginx.

And also normally it shouldn't redirect request to /redirector.

NGINX is a reverse proxy that is not default part of pihole, it can basically handle web requests or serve websites and is like it seems installed on the machine you installed pihole. I cannot give u further details there, because thats in your hand what you have installed or how you installed pihole at the system. Normally pihole uses something called lightttp to serve its admin site and api, not nginx.

Thanks. I just checked my wife's machine and the extension is working fine there so it is indeed related to my machine and not your extension. I'll post back here if I figure out the problem. Thanks for directing me to the source of the problem.

Quick update...added extension to Edge browser on same machine and it work so it appears that the problem is in Chrome.

Problem solved.
Chrome: -> Settings -> Reset and clean up -> Restore settings to their original defaults -> Reset settings
Re-enable the extension and everything is now working :)