-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Issue with multiple cookies (array) in v2 Lambda proxy integration payload #12577
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
Comments
Welcome to LocalStack! Thanks for reporting your first issue and our team will be working towards fixing the issue for you or reach out for more background information. We recommend joining our Slack Community for real-time help and drop a message to LocalStack Support if you are a licensed user! If you are willing to contribute towards fixing this issue, please have a look at our contributing guidelines. |
I see on here: https://docs.localstack.cloud/references/coverage/coverage_apigatewayv2/ There is tests for I was trying to locate this test file to see if there was a test case around multiple cookies but couldn't find this test in the localstack repo? |
Hello @mountmike and thanks for your report! This issue is due to how our Python HTTP request library serializes the response in our tests. We believed AWS API Gateway returned the Regarding the test file, this is in our closed source offering (Pro services) which explains why it's not in this repo. Thanks! |
Hi and thanks @bentsku Could you clarify what you mean by my Python HTTP request library? Are you saying this might have something to do with a library/dependency in my environment? |
Hello @mountmike! I'm really sorry for the misunderstanding, I meant "our" Python requests library, used in our tests. If the issue is still not resolved, please feel free to comment and I'll re-open the issue. Thanks! |
Wow @bentsku that was quick - fantastic! I've just tested and it's working. Thanks again! |
Uh oh!
There was an error while loading. Please reload this page.
Is there an existing issue for this?
Current Behavior
A lambda that returns a response which looks like this (ts type
APIGatewayProxyStructuredResultV2
)only adds one
Set-Cookie
header with a cookie that contains the joined value of all cookies in the array.Expected Behavior
In the response, each cookie in the array becomes a set-cookie header as per the AWS docs: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html#http-api-lambda-response-format
This is what occurs when I am deployed on AWS but no when I deploy with localstack
How are you starting LocalStack?
With the
localstack
scriptSteps To Reproduce
How are you starting localstack (e.g.,
bin/localstack
command, arguments, ordocker-compose.yml
)Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)
My issue is from a CDK app running cdklocal deploy but here are some steps to replicate thanks to the robot overlord.
export API_ID=your-api-id-here
export INTEGRATION_ID=your-integration-id-here
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: