mhart / alpine-node

Minimal Node.js Docker Images built on Alpine Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not able to save Cookies

csantana-apm opened this issue · comments

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?

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