Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

error when fetching IP from geolocation-db.com

  useEffect(() => {
    const get_ip = async () => {
      console.log("got here");
      const response = await fetch("https://geolocation-db.com/json/");
      const data = await response.json();
      console.log(data);
    };
    get_ip();
  }, [])

This is the error that is printed out:

GET https://geolocation-db.com/json/ net::ERR_BLOCKED_BY_CLIENT

What is wrong here? Why can’t I fetch the IP from that website?

I can visit it fine in my browser.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

The GET request is blocked by an adblocker.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading