I am getting
DownloadError: ApplicationError: 2 (11004, 'getaddrinfo failed')
I'm making an API call to an application deployed on Tomcat on my machine and expecting a XML response, but doesn't work. Can someone propose a solution or an alternate route?
I am working on an IT build laptop and suspected that that could be the issue so I tried from a laptop that is not behind firewall and not on company network, but that didnt' help either.
Code Snippet:
base_url = 'http://localhost:8080/recomendations/'
url = (base_url + 'api/1.0/otherusersalsoviewed?' + urlencode(args))
req = urlfetch.fetch(url, None, urlfetch.GET, {}, False, True, 60, False)
if req.status_code==200:
root = ElementTree(fromstring(req.content)).getroot()
Any idea what is wrong?