I recently migrated to Cloud NDB and python3 for app engine from Python2 / ndb. I need both versions running at the same time on the same Datastore.
I've found entity.get() for an entity that was created by Cloud NDB it throws an Assertion error about 20% of requests on the python2 service. Is there a way to update the .get() or otherwise to ensure it can pull it from the datastore correctly?
Error thrown
"/base/alloc/tmpfs/dynamic_runtimes/python27g/19fab4ec47735ec6/python27/python27_lib/versions/1/google/appengine/ext/ndb/model.py", line 1234, in _opt_call_to_base_type
value = _BaseValue(self._call_to_base_type(value))
File "/base/alloc/tmpfs/dynamic_runtimes/python27g/19fab4ec47735ec6/python27/python27_lib/versions/1/google/appengine/ext/ndb/model.py", line 751, in __init__
assert not isinstance(b_val, list), repr(b_val)
AssertionError: []
I thought it might be a cache conflict, but there is a problem about 25% of queries
Workaround: The issue still exists but was about to build NDB query to get the entity indirectly by querying Entity.key == key

Posting this as a community wiki to help other community members that will encounter this kind of issue.
According to your discussion in chat:
You may file a feature request in this link and the Product Team will look into it. However there's no ETA for it.