My point was to keep it low, so you can catch it and send the user a nice
erorr message, rather than just causing the whole request to timeout and
then return the generic error.

You need to make sure you catching the right DeadlineExceededError
http://stackoverflow.com/questions/5738146/unable-to-handle-deadlineexceedederror-while-using-urlfetch


You could even make the timeout low enough, that you have the chance to try
a few times. If there is a issue in some part of the Google system, there
is a small chance retrying might work.



On 17 December 2013 18:04, GAEfan <[email protected]> wrote:

> Thanks, Barry.
>
> I already do this.  The python syntax is a bit different:
>
> rpc = urlfetch.create_rpc(deadline=15)
>
> 15 seconds should be plenty for these fetches.  Perhaps I'll try it at a
> higher number. I think the issue is a connection burp, where it will never
> connect, so changing the deadline won't let it connect, just increase the
> wait time for the error.
>
> Still not sure how to fail more gracefully, though.  I have my fetches in
> a try/except.  But the API's error handling supersedes that, and spits out
> a 500.
>
> This appears to be a Google urlfetch issue again, as the fetches timeout
> to several urls and domains.  When I access those same urls manually, they
> are near instantaneous.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/google-appengine.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to