Skip to content

Commit 419d36d

Browse files
authored
fix: retry ChunkedEncodingError by default (#802)
1 parent 7e0e2ba commit 419d36d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

google/cloud/bigquery/retry.py

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
exceptions.TooManyRequests,
2828
exceptions.InternalServerError,
2929
exceptions.BadGateway,
30+
requests.exceptions.ChunkedEncodingError,
3031
requests.exceptions.ConnectionError,
3132
auth_exceptions.TransportError,
3233
)

tests/unit/test_retry.py

+4
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ def test_w_unstructured_requests_connectionerror(self):
5151
exc = requests.exceptions.ConnectionError()
5252
self.assertTrue(self._call_fut(exc))
5353

54+
def test_w_unstructured_requests_chunked_encoding_error(self):
55+
exc = requests.exceptions.ChunkedEncodingError()
56+
self.assertTrue(self._call_fut(exc))
57+
5458
def test_w_auth_transporterror(self):
5559
from google.auth.exceptions import TransportError
5660

0 commit comments

Comments
 (0)