[Django]-Error message: "'NoneType' object is not callable". โ€“ received from zappa deployed django application on AWS Lambda

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:

  1. Ensure your code works locally when you run python manage.py runserver
  2. Output console messages in various places in your code and run zappa tail to identify the section of code that is having troubles
  3. 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

Leave a comment