Matteo Collina
Matteo Collina
I've tested SSE with payloadAsStream and it works correctly. Can you verify?
> Is this intended behavior? It creates a deadlock situation during my tests, since I'm waiting for a stream to trigger an event, but can't get the stream until after...
I think there is a bug in `fastify-sse-v2`. I'm using this pattern in https://github.com/platformatic/mcp/blob/1e489fe96ba0d290de93059ea807f0f7b510cdab/test/last-event-id.test.ts#L86-L219 and it works well for me.
Here is another one: https://github.com/platformatic/mcp/blob/1e489fe96ba0d290de93059ea807f0f7b510cdab/test/redis-integration.test.ts#L168-L208.
> My example https://github.com/fastify/light-my-request/issues/279#issuecomment-3146588130 doesn't use fastify or fastify-sse-v2. This works correct for me, I'm seeing the actual output. note that if you want to get a response immediately before...
I don't think we agreed to https://github.com/fastify/light-my-request/pull/252, this PR seems a bit premature too.
Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests.
Adding a few log lines would be perfect.
> What are the next steps then? Running the CI and getting it to pass. We'll take of running it, in case there are related failures it would up to...
CI is failing