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? |
Beta Was this translation helpful? Give feedback.
-
|
Hey @FelixSchwarz Here's a repo reproducing the issue, just run |
Beta Was this translation helpful? Give feedback.
-
|
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 |
Beta Was this translation helpful? Give feedback.
-
|
btw: #2020 seems to be relevant as well. |
Beta Was this translation helpful? Give feedback.
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.pyBeta Was this translation helpful? Give feedback.
All reactions