hai i thing im kinda lost here, so i make new thread here…
i use v1.0.3, i dont know this is bug or my silly mistake again but this is it…
i work with json, send json to my lambda function
if i use proxy-lambda it will always return error and i dont know how to get value from json… i already use JSON.parse and JSON.stringify and still cant fix my problem…
always stack on
Unexpected token u at Object.parse (native)
or json value is > undefined
if i use lambda intregration i can take the value from json request but the costum status code not work(for me here is [409]…
but but the default value for status code is totaly fine[201]…
.yml file for intregration is like this
I get a return with status 200. and the json in the body. In serverless-offline I get a status 200 and the json in the body. In lambda test I got
http 500
{
“message”: “Internal server error”
}
I got help in gitter.
The problem was integration type set to lambda.
So I removed from serverless.yml integration and response. Using the default integration lambda-proxy.
And the body don’t need to be a string. At lest I’m passing a JSON object to it and it’s working great.