Repository to reproduce issue when deploying OData API to AWS Lambda See aws/aws-lambda-dotnet#1473.
Steps
- Clone
- Run app locally
- Test that all OData expressions work
- Deploy .NET API to AWS Lambda
For example using command line:
a. Navigate to solution
b. Rundotnet lambda deploy-function
c. Follow steps - Do step 3 again, but now using the deployed API url
a. Notice that whenever you execute the API request/api/v1/tickets
it works fine.
b. Notice that whenever you add an OData expression (e.g./api/v1/tickets?$top=1
) it returns the following response:
{
"message": null
}
Some example OData requests, for people not familiar with OData:
/api/v1/tickets?$top=3
/api/v1/tickets?$orderBy=createdAt
/api/v1/tickets?$skip=1&$top=1