-
-
Notifications
You must be signed in to change notification settings - Fork 546
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
AWS Lambda Adapter only keeps requestContext from API GW event and loses the rest #1620
Comments
cc: @watany-dev |
As you pointed out, APIGatewayProxyEventV2 and other events are not capturing the complete event. @yusukebe |
Is that a lot of it? |
I see! Once things are done, I'll merge #1613 into main. And if you can, please create the PR to port all Lambda event interfaces. Thanks! |
That's awesome, thank you both for your inputs! |
@yusukebe |
Yeah, we can close it! |
What version of Hono are you using?
3.8
What runtime/platform is your app running on?
NodeJS
What steps can reproduce the bug?
I've deployed my hono app to AWS lambda, however, it seems we lose the cookies from the request. I'm looking at this file: https://github.com/honojs/hono/blob/main/src/adapter/aws-lambda/handler.ts. Comparing a log of a lambda using hono vs log of a regular lambda, my hono lambda only has the requestContext while the regular lambda has the entire API GW event. Why doesn't the adapter retain the cookies?
What is the expected behavior?
I want hono context to retain more info from the API GW event rather than just the requestContext. What is the purpose of stripping this info?
What do you see instead?
Only the requestContext remains on the hono context after using the aws-lambda hono adapter
Additional information
No response
The text was updated successfully, but these errors were encountered: