aws / aws/aws-lambda-go

Method with signature events.APIGatewayProxyRequest and events.APIGatewayProxyResponse doesn't invoke Http API

Open
#517 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
3.8k
Forks
578
Avg merge
8h 18m
Merged PRs (30d)
1

Description

I am using Authorizer lambda function in API gateway with following signature

`func handleRequest(ctx context.Context, request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error) {`

Lambda function does return 200 but still API gateway throws 500 with {"Message":null} Response

If i change handler signature to

`func handler(request events.APIGatewayV2CustomAuthorizerV1Request) (events.APIGatewayV2CustomAuthorizerIAMPolicyResponse, error) {`

Same code works as expected and my endpoint get invoked by API gateway

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.