You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But after deployment on AWS lambda I get this HTML response in case of any validation error from the AWS API gateway. Note that success 200 responses are being returned without any issue.
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>422 Unknown Reason</title>
</head><body>
<h1>Unknown Reason</h1>
<p>The server understands the media type of the
request entity, but was unable to process the
contained instructions.</p>
</body></html>
Any idea how can I test magnum locally instead of running uvicorn that behaves differently ? Probably I will have to pass event via cli but I couldn't find local testing instructions in docs.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This is how my fastapi is configured and I can get json validation errors locally.
But after deployment on AWS lambda I get this HTML response in case of any validation error from the AWS API gateway. Note that success 200 responses are being returned without any issue.
Any idea how can I test magnum locally instead of running uvicorn that behaves differently ? Probably I will have to pass event via cli but I couldn't find local testing instructions in docs.
Beta Was this translation helpful? Give feedback.
All reactions