Object reference not set to an instance of an object when proxying from API Gateway #1987
Labels
bug
This issue is a bug.
module/aspnetcore-support
p3
This is a minor priority issue
response-requested
Waiting on additional info and feedback. Will move to close soon in 7 days.
Describe the bug
I have a simple "Hello world" lambda (c#) that works when invoking it via a function url. However, once I try to invoke it via API Gateway (lambda integration), I get "Object reference not set to an instance of an object" from APIGatewayHttpApiV2ProxyFunction.MarshallRequest.
Regression Issue
Expected Behavior
Messages from API Gateway are processed properly.
Current Behavior
Null reference error
Reproduction Steps
I've tried setting up the lambda using services.AddAWSLambdaHosting(LambdaEventSource.RestApi); and services.AddAWSLambdaHosting(LambdaEventSource.RestApi) and services.AddAWSLambdaHosting(LambdaEventSource.HttpApi)...same result.
TodoApi.zip
Possible Solution
No suggestions...but the stack trace I get doesn't include file line numbers...that would be helpful. The stacktrace I get is this:
Additional Information/Context
Here is how I set up the Integration request for my api gateway method. I have tried setting "Lambda proxy integration" to true and false...same result.
AWS .NET SDK and/or Package version used
Amazon.Lambda.AspNetCoreServer.Hosting version 1.7.3
Dotnet 8
Targeted .NET Platform
.net 8
Operating System and version
x86_64
The text was updated successfully, but these errors were encountered: