def generate():
# Special case for urllib3.
if hasattr(self.raw, "stream"):
try:
yield from self.raw.stream(chunk_size, decode_content=True)
except ProtocolError as e:
> raise ChunkedEncodingError(e)
E requests.exceptions.ChunkedEncodingError: ('Connection broken: IncompleteRead(29 bytes read, -29 more expected)', IncompleteRead(29 bytes read, -29 more expected))
Describe the bug
Reproducer in https://github.com/getsentry/responses/pull/655/
Additional context
No response
Version of
responses
0.23.2
Steps to Reproduce
Use https://github.com/getsentry/responses/pull/655/ and run
tox
Expected Result
No error
Actual Result
Error