tRPC sends duplicate header
i tried setting up a reverse proxy for my NextJS + tRPC app using those 3 options:
- nginx
- traefik
- caddy
in all of them when i try to invoke a procedure using a
nginx:
traefik, caddy:
after investigating a bit in nginx i can see that it indeed sends it twice:
what can i do to fix this? is this an issue on my end somehow?
- nginx
- traefik
- caddy
in all of them when i try to invoke a procedure using a
.useMutation() hook it fails with such error:nginx:
upstream sent duplicate header line: "Transfer-Encoding: chunked"traefik, caddy:
net/http: HTTP/1.x transport connection broken: too many transfer encodings: [\"chunked\" \"chunked\"]after investigating a bit in nginx i can see that it indeed sends it twice:
what can i do to fix this? is this an issue on my end somehow?