Skip to content

APIGatewayProxyRequest HttpMethod is empty #179

@petrogko

Description

@petrogko

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}

*Similar issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions