Skip to content

System.ArgumentException running with .NET 7 NativeAOT #1425

Answered by ashishdhingra
fiannafritz asked this question in Q&A
Discussion options

You must be logged in to vote

@fiannafritz Good afternoon. The issue doesn't appear to be reproducible in the actual AWS environment while deploying the code to us-east-2 region:

  • Modified aws-lambda-tools-defaults.json to use region us-east-2.
  • Updated the NuGet packages to latest version.
  • From Terminal, used dotnet lambda deploy-function to deploy the function to AWS.
  • In Lambda console, tested the function using the following example request JSON:
{
  "version": "2.0",
  "routeKey": "$default",
  "rawPath": "/my/path",
  "rawQueryString": "parameter1=value1&parameter1=value2&parameter2=value",
  "cookies": [
    "cookie1",
    "cookie2"
  ],
  "headers": {
    "header1": "value1",
    "header2": "value1,value2"
  },
  

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ashishdhingra
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants