3๐
โ
You have an exception being thrown in your code. I have found NoneType
is a generic error when using AWS Lambda & Zappa that is masking the true issue.
Some debugging steps:
- Ensure your code works locally when you run
python manage.py runserver
- Output console messages in various places in your code and run
zappa tail
to identify the section of code that is having troubles - Repeat above option until you have narrowed the location of the problem.
๐คEdgar
3๐
I was running into a similar issue, tried installing different versions of flask, and discovered it was actually in my zappa configuration file. I had "slim_handler" : "True"
and removing this solved the issue for me.
๐คJoe Webb
Source:stackexchange.com