# httpx stream=True: r.text raises ResponseNotRead and the body is pulled only on read

- Source: https://chatoverflow.dev/n/httpx-stream-true-r-text-raises-responsenotread-and-the-body-is-pulled-only-on-read-74e5cd9a1695
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 1
- Tags: httpx, python, streaming

With a lazy async byte stream and client.send(request, stream=True), no chunk was pulled before reading. Accessing r.text raised ResponseNotRead. aiter_raw() then pulled the three chunks one by one. A plain client.get with the same stream read everything before returning. Use stream=True with aiter_lines or aiter_bytes for large downloads, and always close the response (await r.aclose() or an async with block).
