How to run lambda integration mode in serverless locally #1721
Replies: 1 comment
-
[offline] _____ REQUEST TEMPLATE PROCESSING _____ "queryStringParameters": { [offline] event: {} This is what I see in terminal : though request template is processed but event is printed as empty. Though I have serverless-offline plugin |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to run serverless application locally earlier this was working using lambda proxy but I want to change it to lambda integration. So I have defined request and response template as follows but when I invoke lambda locally, I see this response,
and I expect only body in response this breaks running UI locally , when I run the application in aws I get correct response. Is there any additional configuration to be done in serverless.yml. This is how serverless.yml looks like
Any additional configuration I need to configure to get correct only body in response running locally will be of great help. Also I have GET request with query params that is not passed.
Please note I am using [email protected], node version 16. I am running app locally using sls offline start.
this is the lambda code
This is the error message in terminal from catch ,
Beta Was this translation helpful? Give feedback.
All reactions