connexion and mangum #2024
Replies: 4 comments 3 replies
|
Sorry to be that guy but can you reproduce the issue with a standalone connexion app locally (not running serverless)? If so, could you post a minimal working example and a curl call so we can reproduce the issue? |
|
Hey @FelixSchwarz Here's a repo reproducing the issue, just run |
|
Thank you for the nice reproducer. I believe the problem is that you are not sending a def post(body=None):
print(body)
return "hello world", 200Btw: The relevant connexion code can be found in |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to deploy
connexionusing serverless AWS lambda using mangum, post requests with a body payload will fail due toBadRequestProblem("RequestBody is required")The request body is stored in key "properties" and not in "default" making the validation code miss the body, any idea how to mitigate that?
mangum supports
starletteASGI but I cant get pass the validation./connexion/validators/abstract.pyAll reactions