MarshallRequest - NullReference exception #1819
-
|
I am currently trying to publish a .NET8 backend on AWS Lambda. When testing my lambda function, I get this exact error: 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. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Hi @KarimBenhallam, Thank you for providing the details and the stack trace. The error Could you please review the If you're still unable to resolve the issue after investigating the objects passed to Regards, |
Beta Was this translation helpful? Give feedback.



@KarimBenhallam Good morning. A
NullReferenceException(Object reference not set to an instance of an object) within theMarshallRequestmethod of theAPIGatewayProxyFunctiontypically indicates that the incoming Lambda event is missing expected properties, most often because the API Gateway is not configured correctly as a proxy.The most common causes include:
RequestContextorhttpMethod) thatMarshallRequestneeds to map the request to ASP.NET Core.