Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kanelv opened this issue Sep 22, 2022 · 1 comment · Fixed by #223
Closed

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

kanelv opened this issue Sep 22, 2022 · 1 comment · Fixed by #223

Comments

@kanelv
Copy link

kanelv commented Sep 22, 2022

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
Copy link

kevb10 commented Feb 25, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants