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?
Nico•19d ago
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
Killian Di Vincenzo•17d ago
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.
Want results from more Discord servers?
More PostsOptional params in hono/clientIt seems that it doesn't support optional params at all.
In hono I can specify optional parameters, Send data to HonoHi, how can i send Request body and file on same route.Client ipHow can I get the client ip, I need it for my rate limiterWhat is the best way to handle the error?What I want is to get the error from server to client using rpc + react query
1. Using `trycatch`
2Running `bun run dev` on a newly created Cloudflare Pages example spits an error```
bun run dev
$ vite
(!) Could not auto-determine entry point from rollupOptions or html files andconnect my hono application endpoints with swagger uihow i can use swagger ui with my hono applicationHow to set "credentials: true" in client side using rpc?I'm using rpc with react query on the client side, this kind of fetching has already credentials: trCookies doesn't processWhen I try to run in my middleware the following
```
setCookie(c, 'test', 'res', { maxAge: 60 * 60 use Context to get vars from wrangler.tomlhow can fix this code. i want to use my openaiApiKey from the wrangler.toml when i create an openai Connect Hono Cloudflare with MongoDBHi. I am using Hono and deploying to Cloudflare. However I am unable to find a way to connect mongod