Giter Site home page Giter Site logo

Comments (11)

badsgahhl avatar badsgahhl commented on September 15, 2024

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.

from pihole-browser-extension.

SDeGonge avatar SDeGonge commented on September 15, 2024

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.

from pihole-browser-extension.

badsgahhl avatar badsgahhl commented on September 15, 2024

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

from pihole-browser-extension.

badsgahhl avatar badsgahhl commented on September 15, 2024

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.

from pihole-browser-extension.

SDeGonge avatar SDeGonge commented on September 15, 2024

image

image

from pihole-browser-extension.

badsgahhl avatar badsgahhl commented on September 15, 2024

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.

from pihole-browser-extension.

SDeGonge avatar SDeGonge commented on September 15, 2024

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

from pihole-browser-extension.

badsgahhl avatar badsgahhl commented on September 15, 2024

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.

from pihole-browser-extension.

badsgahhl avatar badsgahhl commented on September 15, 2024

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

from pihole-browser-extension.

SDeGonge avatar SDeGonge commented on September 15, 2024

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.

from pihole-browser-extension.

SDeGonge avatar SDeGonge commented on September 15, 2024

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 :)

from pihole-browser-extension.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.