jordaneremieff / mangum

AWS Lambda support for ASGI applications
https://mangum.io/
MIT License
1.67k stars 119 forks source link

Unable to infer a hanlder when using mangum #272

Closed 94929 closed 2 years ago

94929 commented 2 years ago

Hi, I'm using mangum for serving lambda image and I get the following error:

{"errorMessage": "The adapter was unable to infer a handler to use for the event. This is likely related to how the Lambda function was invoked. (Are you testing locally? Make sure the request payload is valid for a supported handler.)", "errorType": "RuntimeError", "stackTrace": ["  File \"/var/lang/lib/python3.8/site-packages/mangum/adapter.py\", line 65, in __call__\n    handler = self.infer(event, context)\n", "  File \"/var/lang/lib/python3.8/site-packages/mangum/adapter.py\", line 55, in infer\n    raise RuntimeError(  # pragma: no cover\n"]}

Did anyone face the same issue? Any help would be appreciated.