I encountered this Error when i used python urlfetch
The problem is because the time out to the server is just a few seconds.

The solution to this problem is to set the timing as the example below;

def get(self):

#this is the server fetch URL with the data
url = “http://127.0.0.1:8888/formSubmissionsV?odkId=new_form1”
#set the deadline of the server response to a minute
result = urlfetch.fetch(url,deadline=60)
#display information if there is no error
if result.status_code == 200:
self.response.out.write(result.content)

LEAVE A REPLY

Please enter your comment!
Please enter your name here