Hi All, In my application I am trying to call external weblink to map data but it always gives me <class 'urllib2.URLError'> <urlopen error timed out> error.
I am using several times urllib for calling same weblinks for different mapping....Will this cause problem??? params = {'from':'ID', 'to':'MEROPS_ID', 'format':'tab', 'query':'P22894'} data = urllib.urlencode(params) request1 = urllib2.Request('http://www.uniprot.org/mapping/', data) response = urllib2.urlopen(request1, timeout=30) params3 = {'from':'ID', 'to':'P_ENTREZGENEID', 'format':'tab', 'query':'P22894'} coexdata = urllib.urlencode(params3) coexrequest = urllib2.Request('http://www.uniprot.org/mapping/', coexdata) coexresponse = urllib2.urlopen(coexrequest, timeout=30) params4 = {'from':'ID', 'to':'P_ENTREZGENEID', 'format':'tab', 'query': 'P22894'} data6 = urllib.urlencode(params4) requestmmpn = urllib2.Request('http://www.uniprot.org/mapping/', data6) responsemmpn = urllib2.urlopen(requestmmpn, timeout=30) I have seen one http_error_302 611. 612. 613. 614. 615. 616. 617. 618. 619. 620. # Don't close the fp until we are sure that we won't use it # with HTTPError. fp.read() fp.close() return self.parent.open(new, timeout=req.timeout) http_error_301 = http_error_303 = http_error_307 = http_error_302 inf_msg = "The HTTP server returned a redirect error that would " \ any suggestion to solve this issue Thanks -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.