StreamAlreadyConsumed(
self,
)Attempted to read or stream content, but the content has already been streamed.
This can happen if you use a method like .iter_lines() and then attempt
to read th entire response body afterwards, e.g.
response = await client.post(...)
async for line in response.iter_lines():
... # do something with `line`
content = await response.read()
# ^ error
If you want this behaviour you'll need to either manually accumulate the response
content or call await response.read() before iterating over the stream.