urlfetch failture when http response code is 998

168 views
Skip to first unread message

Lewis

unread,
Jul 7, 2013, 11:02:03 PM7/7/13
to google-a...@googlegroups.com

I am using GAE to communicate other servers via http. For some particular purposes, some of the response codes are customized as 998. But urlfetch seems not response to this code. When the server return the response code of 998, urlfetch doesn't response until  reaching the deadline and throwing an exception. Is there a limitation in customized response code for urlfetch? Does anyone have the similar situation?

Vinny P

unread,
Jul 8, 2013, 5:15:51 PM7/8/13
to google-a...@googlegroups.com
On Sun, Jul 7, 2013 at 10:02 PM, Lewis <lewi...@gmail.com> wrote:

I am using GAE to communicate other servers via http. For some particular purposes, some of the response codes are customized as 998. But urlfetch seems not response to this code. When the server return the response code of 998, urlfetch doesn't response until  reaching the deadline and throwing an exception. Is there a limitation in customized response code for urlfetch? Does anyone have the similar situation?
 
 
Can you post the code you're using to conduct the urlfetch?
 
What you can do is catch the exception and retry the urlfetch, or queue up a task to continually retry the urlfetch until it succeeds.
 
-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com
 

Reply all
Reply to author
Forward
0 new messages