-
Notifications
You must be signed in to change notification settings - Fork 568
Description
Description
On aws sending request from api gateway -> lambda, HttpMethod seems to be always empty. But not just HttpMethod, anything within APIGatewayProxyRequest.
Using localstack and aws-cli while testing always produces the desired output for me. I am able to see that the request indeed is filled with wonders and provides me the necessary information. However on aws its a different story.
Lang; GoLang 1.11
OS: Mac Mojave
Desired Output
Obtaining a response with appropriate data after lambda execution because I am able to utilize request.HttpMethod.
Observed Result
Request empty; seen by output from lambda execution.
Any support would be helpful. My code is simple and not attempting anything fancy.
All I'm attempting to perform is a simple logic check.
if request.HttpMethod == "POST" { //doSomething}
if request.HttpMethod == "GET" { //doSomethingElse}