logandk / serverless-wsgi

Serverless plugin to deploy WSGI applications (Flask/Django/Pyramid etc.) and bundle Python packages
MIT License
494 stars 88 forks source link

Serverless wsgi application and aws http api fail to integrate #220

Closed kanelv closed 2 years ago

kanelv commented 2 years ago

When I setup severless.yml to use httpApi, and run "npx sls offline start", I have got the below things. What should I do in the case? ./node_modules/serverless-offline/src/lambda/handler-runner/python-runner/invoke.py", line 97, in <module> result = handler(input['event'], context) ./wsgi_handler.py", line 106, in handler return serverless_wsgi.handle_request(wsgi_app, event, context) ./serverless_wsgi.py", line 178, in handle_request return handle_payload_v2(app, event, context) ./serverless_wsgi.py", line 254, in handle_payload_v2

`"CONTENT_LENGTH": str(len(body)),`

TypeError: object of type 'NoneType' has no len()

kevb10 commented 1 year ago

this is not yet fixed. i'm encountering issues with the one on line 255