-
Notifications
You must be signed in to change notification settings - Fork 364
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
Error: Warning! Status check on the deployed lambda failed. A GET request to '/' yielded a 502 response code. #1358
Comments
@zfogg have you been able to figure ou thte issue? I'm having a similar issue with django with the django-configuation python module. |
@lorodoes no i haven't figured the issue out and couldn't get this project to work for me. i'm using aws sam instead. |
@zfogg try adding the package in the includes in the zappa setting. Also, from what I found it's most likely because it can't figure out what your application function is the wsgi to be exact. normally it can discover it. Try adding something like this to the zappa settings (this is at least for django): "app_function": "myproject.wsgi.application", |
The include setting looks like this: "include": [ |
If you have an import error in your code this is a typical error you will see. |
Context
When I try to deploy or update, the process works well except for the final status check. It 502s because it can't import
handler
module, which is weird because that's generated by zappa not me.The output of
zappa tail
:Expected Behavior
It should deploy properly and be able to GET /
Actual Behavior
When it does GET to / it 502s because of an import error
Steps to Reproduce
zappa deploy dev
Your Environment
pip freeze
:zappa_settings.json
:The text was updated successfully, but these errors were encountered: