Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    Exception while retriving IP Address

    Python SDK
    0
    2
    20
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      DIYD2322 last edited by

      Exception while retriving IP Address,using local host IP address HTTPSConnectionPool(host='api.ipify.org', port=443): Max retries exceeded with url: / (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x0000025F814933D0>: Failed to resolve 'api.ipify.org' ([Errno 11001] getaddrinfo failed)"))

      punit 1 Reply Last reply Reply Quote 0
      • punit
        punit @DIYD2322 last edited by punit

        @DIYD2322 Sometime this External API gets in to trouble. Better to hardcode the IP in the code. This is for analytical purpose, but querying every time is overkill. So better to hardcode.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post