I am seeing a similar error for our app. In some cases I get the response back and the status_code attribute is not populated, even though the response.content appears to be valid.
Dave Tucker WebFilings On Jun 15, 8:17 am, Gavin Andresen <gavinandre...@gmail.com> wrote: > I'm getting spuriousurlfetch.Errorexceptions that say they are > ApplicationError:2 > > The relevant bit of python code: > try: > fetch_result =urlfetch.fetch(payment_server, deadline=10, > method="POST", payload=secret > +json_string, > headers={ 'Content-Type' : 'text/ > plain' }) > excepturlfetch.Error, e: > logging.error('make_bitcoin_request failed: '+str(e)) > logging.error('Request:'+json_string) > return None > > Log of a typicalerror: > > # 213.221.6.130 - - [15/Jun/2010:05:56:50 -0700] "GET / HTTP/1.1" 200 > 1391 - "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/ > 533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4,gzip(gfe)" > "freebitcoins.appspot.com" > # E 06-15 05:56AM 50.232 make_bitcoin_request failed: > ApplicationError:2 > # E 06-15 05:56AM 50.233 Request:{"params": > [],"jsonrpc":"2.0","id":"1276606609.99","method":"getbalance"} > > Note that the ApplicationError:2is the exception thrown by > theurlfetch.fetch() call. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.