diff --git a/google/cloud/firestore_v1/watch.py b/google/cloud/firestore_v1/watch.py index 458a3a947..2216acd45 100644 --- a/google/cloud/firestore_v1/watch.py +++ b/google/cloud/firestore_v1/watch.py @@ -57,7 +57,16 @@ "DO_NOT_USE": -1, } _RPC_ERROR_THREAD_NAME = "Thread-OnRpcTerminated" -_RECOVERABLE_STREAM_EXCEPTIONS = (exceptions.ServiceUnavailable,) +_RECOVERABLE_STREAM_EXCEPTIONS = ( + exceptions.Aborted, + exceptions.Cancelled, + exceptions.Unknown, + exceptions.DeadlineExceeded, + exceptions.ResourceExhausted, + exceptions.InternalServerError, + exceptions.ServiceUnavailable, + exceptions.Unauthenticated, +) _TERMINATING_STREAM_EXCEPTIONS = (exceptions.Cancelled,) DocTreeEntry = collections.namedtuple("DocTreeEntry", ["value", "index"])