Skip to content

Commit 50ecc98

Browse files
committed
fix: update resumable errors to match string from test failure
1 parent 72f84a1 commit 50ecc98

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bigquery_storage/google/cloud/bigquery_storage_v1beta1/reader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
# for error message that we know are caused by problems that are safe to
5050
# reconnect.
5151
_STREAM_RESUMPTION_INTERNAL_ERROR_MESSAGES = (
52-
# See: https://issuetracker.google.com/143292803
53-
"unexpected EOS on DATA frame",
52+
# See: https://github.com/googleapis/google-cloud-python/pull/9994
53+
"RST_STREAM",
5454
)
5555

5656
_FASTAVRO_REQUIRED = (

bigquery_storage/tests/unit/test_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def _avro_blocks_w_resumable_internal_error(avro_blocks):
185185
for block in avro_blocks:
186186
yield block
187187
raise google.api_core.exceptions.InternalServerError(
188-
"INTERNAL: Received unexpected EOS on DATA frame from server."
188+
"INTERNAL: Received RST_STREAM with error code 2."
189189
)
190190

191191

0 commit comments

Comments
 (0)