I've been getting some db.put errors since last Friday. The error
message isn't helpful, I'm hoping someone can shed some light on it.
I changed my db.put(write_list) to
fail = True
try:
db.put(write_list)
fail = False
except:
logging.exception('Error bulk saving')
if fail:
for r in write_list:
try:
db.put(r)
except:
logging.exception('Error saving kind: %r key: %s'
% (r.kind(), r.key()))
I'm still getting a couple of errors a day but at least the operation
is succeeding. The second exception handler isn't being hit.
db.put(write_list)
File "/base/python_lib/versions/1/google/appengine/ext/db/
__init__.py", line 1212, in put
keys = datastore.Put(entities)
File "/base/python_lib/versions/1/google/appengine/api/
datastore.py", line 181, in Put
raise _ToDatastoreError(err)
InternalError: Unexpected error, please try again.
Thanks.
--
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.