I'm getting spurious urlfetch.Error exceptions 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' })
except urlfetch.Error, e:
logging.error('make_bitcoin_request failed: '+str(e))
logging.error('Request:'+json_string)
return None
Log of a typical error:
# 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: 2 is the exception thrown by the
urlfetch.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 [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.