socket.gaierror: [Errno 11004] getaddrinfo failed


  • 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"))


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


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


  • @admin or anyone can find this?