-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal server error when setting multiple header values #29
Comments
Hi, thanks for digging down on this. Since the last 2 releases we use a custom fork of now-node-bridge to provide a better customization for API Gateway (Located here: https://github.com/dealmore/terraform-aws-next-js/blob/main/packages/node-bridge/src/bridge.ts). But since it only passes the headers like the Vercel version the bug is present there as well (L238). I will take a deeper look later today, we should be able to reproduce the behavior in our unit and e2e tests. |
Fixes issues with multi value headers (#29)
Fix is now released in |
Hi,
I've been debugging an issue we've been having using nextauth routes. The api routes (
/api/auth/[...nextauth]
) served by the nextauth library were all responding with an HTTP error 500. I've narrowed down the issue to nextauth setting two cookies, which in turn sets the headerset-cookie
to contain two values in the header object returned to API Gateway (see source).AWS API Gateway v1 requires headers with multiple values to be set in
multiValueHeaders
key and rejects multi value headers that are set inheaders
.I would write a patch myself but I am struggling to test the changes to the respective bridge function.
Please let me know if I have missed something.
The text was updated successfully, but these errors were encountered: