Thanks for following up. In my particular case, the solution is to import
from google.appengine.runtime import apiproxy_errors and catching apiproxy_errors.Error: johnP On Aug 10, 2:23 pm, "Jeff S (Google)" <[email protected]> wrote: > Hi John, > > Tracking down the exact exception is a bit tricky in this case as in this > stack trace apiproxy_rpc re-raises whatever exception is sent it's way. I > would guess that the particular Error class is originating from > google/appengine/api/datastore_errors.py but to configm you could catch the > exception e and log or display type(e). > > Cheers, > > Jeff > > On Tue, Aug 4, 2009 at 1:54 PM, johnP <[email protected]> wrote: > > > What specifically should I be catching in order to properly handle the > > following item that appears in my stacktrace? Where do I import this > > exception (Error) from? This error occurs intermittently. > > > Error: An error occurred for the API request > > datastore_v3.RunQuery(). > > > The full stacktrace is: > > > File "/base/python_lib/versions/1/google/appengine/ext/db/ > > __init__.py", line 1382, in get > > results = self.fetch(1) > > File "/base/python_lib/versions/1/google/appengine/ext/db/ > > __init__.py", line 1426, in fetch > > raw = self._get_query().Get(limit, offset) > > File "/base/python_lib/versions/1/google/appengine/api/ > > datastore.py", line 959, in Get > > return self._Run(limit, offset)._Get(limit) > > File "/base/python_lib/versions/1/google/appengine/api/ > > datastore.py", line 900, in _Run > > apiproxy_stub_map.MakeSyncCall('datastore_v3', 'RunQuery', pb, > > result) > > File "/base/python_lib/versions/1/google/appengine/api/ > > apiproxy_stub_map.py", line 72, in MakeSyncCall > > apiproxy.MakeSyncCall(service, call, request, response) > > File "/base/python_lib/versions/1/google/appengine/api/ > > apiproxy_stub_map.py", line 244, in MakeSyncCall > > stub.MakeSyncCall(service, call, request, response) > > File "/base/data/home/apps/tw3/16.335384870848503913/twa/ > > datastore_cache.py", line 66, in MakeSyncCall > > self.CallWrappedStub(call, request, response) > > File "/base/data/home/apps/tw3/16.335384870848503913/twa/ > > datastore_cache.py", line 54, in CallWrappedStub > > self._wrapped_stub.MakeSyncCall(self.SERVICE_NAME, call, request, > > response) > > File "/base/python_lib/versions/1/google/appengine/runtime/ > > apiproxy.py", line 183, in MakeSyncCall > > rpc.CheckSuccess() > > File "/base/python_lib/versions/1/google/appengine/api/ > > apiproxy_rpc.py", line 110, in CheckSuccess > > raise self.exception > > Error: An error occurred for the API request datastore_v3.RunQuery(). --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
