Serverless wsgi error on lambda but working fine on local

Solution
{
  "requestPath": "",
  "headers": {},
  "body": {
    "username": "some_username",
    "password": "p@ssW0rD"
  }
}