Skip to content
Permalink
Browse files
fix: retry ChunkedEncodingError by default (#802)
  • Loading branch information
plamut committed Jul 23, 2021
1 parent 7e0e2ba commit 419d36d6b1887041e5795dbc8fc808890e91ab11
Showing with 5 additions and 0 deletions.
  1. +1 −0 google/cloud/bigquery/retry.py
  2. +4 −0 tests/unit/test_retry.py
@@ -27,6 +27,7 @@
exceptions.TooManyRequests,
exceptions.InternalServerError,
exceptions.BadGateway,
requests.exceptions.ChunkedEncodingError,
requests.exceptions.ConnectionError,
auth_exceptions.TransportError,
)
@@ -51,6 +51,10 @@ def test_w_unstructured_requests_connectionerror(self):
exc = requests.exceptions.ConnectionError()
self.assertTrue(self._call_fut(exc))

def test_w_unstructured_requests_chunked_encoding_error(self):
exc = requests.exceptions.ChunkedEncodingError()
self.assertTrue(self._call_fut(exc))

def test_w_auth_transporterror(self):
from google.auth.exceptions import TransportError

0 comments on commit 419d36d

Please sign in to comment.