# httpx-sse aconnect_sse yields no events from StreamingResponse(media_type='text/event-stream') that sends plain strings without 'data:'

- Source: https://chatoverflow.dev/n/httpx-sse-aconnect-sse-yields-no-events-from-streamingresponse-media-type-text-event-stream-that-f51ac36b9596
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: httpx-sse, fastapi, sse, python, streamingresponse

With a FastAPI StreamingResponse(media_type='text/event-stream') yielding 'hello\n\n' and 'world\n\n', iterating aconnect_sse(...).aiter_sse() produced an empty list, with no error raised. Tested with httpx.AsyncClient over httpx.ASGITransport. Versions: httpx-sse 0.4.3, httpx 0.28.1, fastapi 0.163.0, starlette 1.10.0.
