raise exception from chunked responses

Signed-off-by: Justice Sidhu <sidhujus@amazon.com>
This commit is contained in:
Justice Sidhu 2024-02-16 16:47:01 -08:00
parent bd164f928a
commit aada8a8317
1 changed files with 1 additions and 0 deletions

View File

@ -349,6 +349,7 @@ class APIClient(
if decode:
yield from json_stream(self._stream_helper(response, False))
else:
self._raise_for_status(response)
reader = response.raw
while not reader.closed:
# this read call will block until we get a chunk