Skip to content
Discussion options

You must be logged in to vote

@KarimBenhallam Good morning. A NullReferenceException (Object reference not set to an instance of an object) within the MarshallRequest method of the APIGatewayProxyFunction typically 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:

  • Missing Proxy Integration: The function expects an API Gateway Proxy Integration request. If "Use Lambda Proxy integration" is unchecked in the Amazon API Gateway console, the event payload will lack the structure (like RequestContext or httpMethod) that MarshallRequest needs to map the request to ASP.NET Core.
  • Missing RequestCon…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@KarimBenhallam
Comment options

@normj
Comment options

normj Oct 1, 2024
Collaborator

@KarimBenhallam
Comment options

@ashishdhingra
Comment options

Answer selected by dscpinheiro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment