StreamSSE on http2
Hi ! It seems that the streamSSE feature is not correctly adapted to work on http2. It adds the following header ‘transfer-encoding’->‘chuncked’, which is not authorised on http2.
so it gives me an error :
I can't use the SSE and I desperately need it to continue developing my application. It's such a trifle ... I'm an opensource neophyte, should I create an issue on github? And until it's adapted to http2, is there an interesting workaround, without having to go back to h1?
2 Replies
What runtime are you using?
In Bun http2 is not supported yet. I would have to do research to see if that would effect how this works in node as well or another runtime if you are using those
Hi @Nico ! Sorry for responding late. I was using bun before using http2, but now I'm using nodeJS.
I found a workaround for a little time by doing :
And then, the server stop crash and clients managed to connect to the server ; but the stream disconnected immediately with the same error (but no more crash) : UnsupportedWarning: The provided connection header is not valid, the value will be dropped from the header and will never be in use.