Make sure you write_list contains entities with unique key_names. I've just had the same error, appears put doesn't like duplicate key_names maybe. No heavy testing though so may not be the cause.
On Nov 26, 3:55 pm, Kenneth <[email protected]> wrote: > 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.
