Coder Social home page Coder Social logo

ipinfo return an error (IndexError: tuple index out of range) when details of specific IP address is not available. about python HOT 5 CLOSED

ipinfo avatar ipinfo commented on July 20, 2024
ipinfo return an error (IndexError: tuple index out of range) when details of specific IP address is not available.

from python.

Comments (5)

UmanShahzad avatar UmanShahzad commented on July 20, 2024 2

@dc-aichara It's released!

from python.

dc-aichara avatar dc-aichara commented on July 20, 2024 1

@UmanShahzad Hey! Thank you for fixing bug. Much appreciated. Please, release update.

from python.

UmanShahzad avatar UmanShahzad commented on July 20, 2024 1

@dc-aichara Yep will merge and release it ASAP.

from python.

UmanShahzad avatar UmanShahzad commented on July 20, 2024

@dc-aichara Hey, we'll check this one out tomorrow! Sorry for any inconvenience.

from python.

UmanShahzad avatar UmanShahzad commented on July 20, 2024

@dc-aichara So the issue is that those IPs are designated as private IPs, and can never have a definitive location. What that also means is you'll get a AttributeError if you try to reference a field that doesn't exist for private IPs, like the country.

So I've opened #11 for fixing the IndexError that happens within the library, but consumers will need to ensure they handle private IPs properly.

from python.

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.