Navigation

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

    socket.gaierror: [Errno 11004] getaddrinfo failed

    Python SDK
    pythonsdk
    2
    4
    23
    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.
    • S
      sayed last edited by

      Getting error plz explain:
      '''''''''
      for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
      socket.gaierror: [Errno 11004] getaddrinfo failed
      '''''''''''

      import http.client
      import mimetypes
      conn = http.client.HTTPSConnection(
      " apiconnect.angelbroking.com "
      )
      payload = ''
      headers = headers = {
      'Authorization': 'Bearer AUTHORIZATION_TOKEN',
      'Accept': 'application/json',
      'X-UserType': 'USER',
      'X-SourceID': 'WEB',
      'X-ClientLocalIP': 'CLIENT_LOCAL_IP',
      'X-ClientPublicIP': 'CLIENT_PUBLIC_IP',
      'X-MACAddress': 'MAC_ADDRESS',
      'X-PrivateKey': 'API_KEY'
      }
      conn.request("GET",
      "/rest/secure/angelbroking/user/
      v1/getProfile",
      payload,
      headers)
      res = conn.getresponse()
      data = res.read()
      print(data.decode("utf-8"))

      1 Reply Last reply Reply Quote 0
      • S
        sayed last edited by

        @admin or anyone can find this?

        A 1 Reply Last reply Reply Quote 0
        • A
          admin @sayed last edited by

          @sayed we have noticed your issue we will update you on this.

          1 Reply Last reply Reply Quote 0
          • A
            admin last edited by

            hii @sayed we have fixed this issue you need to reinstall sdk now.Also if you adress any other issue let us know.

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