You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using miniflare in test to assert my app is delivering the expected chunks in a streamed response. When I run the miniflare server locally and hit the endpoint using curl I get the expected chunks delivered as soon as they are enqueued. When I use miniflare.dispatchFetch() the chunks are all delivered at once when the stream is closed, suggesting that .dispatchFetch is somehow buffering the response internally?
Which Cloudflare product(s) does this pertain to?
Miniflare
What versions are you using?
3.20241230.0[miniflare]
What operating system and version are you using?
OSX 15.2
Please provide a link to a minimal reproduction
No response
Describe the Bug
I'm using miniflare in test to assert my app is delivering the expected chunks in a streamed response. When I run the miniflare server locally and hit the endpoint using
curl
I get the expected chunks delivered as soon as they are enqueued. When I useminiflare.dispatchFetch()
the chunks are all delivered at once when the stream is closed, suggesting that.dispatchFetch
is somehow buffering the response internally?Worker server code:
Client code
Log output
Note how the client logs all happen after the final chunk is enqueued and the stream is closed.
Please provide any relevant error logs
No response
The text was updated successfully, but these errors were encountered: