I am currently trying to publish a .NET8 backend on AWS Lambda. When testing my lambda function, I get this exact error:
{
“errorType”: “NullReferenceException”,
“errorMessage”: “Object reference not set to an instance of an object.”,
“stackTrace”: [
“at Amazon.Lambda.AspNetCoreServer.APIGatewayProxyFunction.MarshallRequest(InvokeFeatures features, APIGatewayProxyRequest apiGatewayRequest, ILambdaContext lambdaContext)”,
“at Amazon.Lambda.AspNetCoreServer.AbstractAspNetCoreFunction2.FunctionHandlerAsync(TREQUEST request, ILambdaContext lambdaContext)", "at Amazon.Lambda.RuntimeSupport.HandlerWrapper.<>c__DisplayClass26_0
2.<b__0>d.MoveNext()”,
“— End of stack trace from previous location —“,
“at Amazon.Lambda.RuntimeSupport.LambdaBootstrap.InvokeOnceAsync(CancellationToken cancellationToken)”
]
}
Checking cloudwatch did not help much, as I got the exact same error.
Is anybody familiar with this error? Thank you in advance.
I tried different root paths, different request paths to try and find the source of the error, but I cannot find it.
Projet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1