*I am using Python (not Java), but I was receiving significant numbers of * DeadlineExceeded* errors (many per day). Since using this patch to increase the timeout to 10 seconds, I have not seen any *DeadlineExceeded* errors.*
*The fix for Python was to add the following code before importing httplib2* *:* * * # Fix for DeadlineExceeded, based on code from # https://groups.google.com/forum/#!msg/google-appengine/OANTefJvn0A/uRKKHnCKr7QJ from google.appengine.api import urlfetch real_fetch = urlfetch.fetch def fetch_with_deadline(url, *args, **argv): argv['deadline'] = 10 # 10 second timeout logservice.flush() return real_fetch(url, *args, **argv) urlfetch.fetch = fetch_with_deadline *I don't know what the equivalent is for Java, but this may give you some ideas.* * * *Regards,* * * *Julie* * * On 26 October 2012 03:12, Deepak Singh <[email protected]> wrote: > Hi Alll, > > I want to discuss here your experience about GAE Java URLFetchService. > > We are using async feature of this service to retrieve data from 3rd party > servers and our business mainly depends on the data received from their > servers. > I observe that UrlFetch fails many times with java.io exception and thus > we lose our business. > > So i would like to know your experience about its reliability, > DeadlineExceededException cases, ways to handle it and all. > > Let us know how reliable is URLFetchService(GAE Java) ? > > Regards > Deepak Singh > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
