I have a fastAPI api hosted on appengine. it makes calls to firestore using firestore client. Sometimes, some (1 out of 50) of the calls fail with this error:
NB: I use latest version of grpcio, grpcio-tools and google-cloud-firestore.
AttributeError: 'NoneType' object has no attribute 'from_call'
at ._parse_grpc_error_details ( /layers/google.python.pip/pip/lib/python3.7/site-packages/google/api_core/exceptions.py:553 )
at .from_grpc_error ( /layers/google.python.pip/pip/lib/python3.7/site-packages/google/api_core/exceptions.py:605 )
at .error_remapped_callable ( /layers/google.python.pip/pip/lib/python3.7/site-packages/google/api_core/grpc_helpers.py:144 )
at .retry_target ( /layers/google.python.pip/pip/lib/python3.7/site-packages/google/api_core/retry.py:190 )
at .retry_wrapped_func ( /layers/google.python.pip/pip/lib/python3.7/site-packages/google/api_core/retry.py:288 )
at .__call__ ( /layers/google.python.pip/pip/lib/python3.7/site-packages/google/api_core/gapic_v1/method.py:154 )
at .batch_get_documents ( /layers/google.python.pip/pip/lib/python3.7/site-packages/google/cloud/firestore_v1/services/firestore/client.py:870 )
at .get ( /layers/google.python.pip/pip/lib/python3.7/site-packages/google/cloud/firestore_v1/document.py:406 )