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 <j...@thinkwave.com> 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 google-appengine@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
-~----------~----~----~----~------~----~------~--~---

Reply via email to