How to serve hono streamSSE via nginx reverse proxy
2025/07/07 12:40:30 [error] 22#22: *1 upstream sent duplicate header line: "Transfer-Encoding: chunked", previous value: "Transfer-Encoding: chunked" while reading response header from upstream, client: 192.168.65.1, server: localhost, request: "GET /api/v1/robots HTTP/1.1", upstream: "http://192.168.1.120:5002/api/v1/robots", host: "192.168.1.120"
5 Replies
I found Transfer-Encoding: chunked, twice in the Response Headers, Is this may be a reason
Are you running this as build or dev
Having same error in both places
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Cache-Control: no-cache
Connection: keep-alive
Content-Type: text/event-stream
Transfer-Encoding: chunked
Date: Mon, 07 Jul 2025 19:28:45 GMT
Transfer-Encoding: chunked
Always accessed thru the Nginx? It's not proxy buffering ?
Any middleware adding headers in your hono
Is there any code examples you can provide ?
The problem is
Transfer-Encoding: chunked
was added twice