Method with signature events.APIGatewayProxyRequest and events.APIGatewayProxyResponse doesn't invoke Http API
Open
- 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
Assessment
This issue has not been assessed yet.