Open emilmuller opened 1 year ago
@emilmuller apologies for the delayed response. Now that RC1 of .NET 8 is available I'm going to revisit some of these samples, hopefully over the weekend. I'll reply to this thread when they are re-deployed and working.
@emilmuller could you try the .NET 8 examples again now? I've just updated them.
Hi
I'm playing around with .NET 8 minimal API on lambda. Trying to adapt it to my current project. Copied NET8MinimalAPI from here, modified it slightly, and deployed it. But it hangs. Actually, I don't think it freezes, but my guess is that it reaches app.Run(), and then it's not registering any request or something. I can Console.Write just fine. I haven't used AWS in some time, so I'm no expert. It fails with:
This is what I'm seeing in the logs (no errors):
Testing using apigateway-aws-proxy testing template in Lambda.
Any idea what could be the issue?
Incidentally, to build it on Windows, I used this Dockerfile:
In an attempt to solve this, I'm noticing that apigateway-aws-proxy is in camel case. Shouldn't ApiSerializerContext be decorated with [JsonSourceGenerationOptions(PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase)] ? I can't understand that it would work without it. Anyways, adding it had no effect either.
Kind regards, Emil