mhart / alpine-node

Minimal Node.js Docker Images built on Alpine Linux
MIT License
2.45k stars 303 forks source link

Not able to save Cookies #166

Closed csantana-apm closed 2 years ago

csantana-apm commented 2 years ago

I have alpine-node 14 in AWS and for some reason when I try to save a cookie with this (works just fine in Node 14 locally):

res.cookie('myCookie', someValue, options);

Returns a 502 Bad Gateway Error (NGinx), the interesting part is that does not generates any error on the logs. If I remove that line and I save the cookie in the client, everything works just fine.

Any ideas?

Is there a different way to set cookies with alpine-node 14?

csantana-apm commented 2 years ago

Found the root cause, I think alpine-node is not related, closing this ticket.

2022/08/15 22:01:49 [error] 5196#5196: *306 upstream sent too big header while reading response header from upstream