Open ctippur opened 5 years ago
Do you see the time when you access /dev/?
It’s the same case
Sent from my iPhone
On Apr 3, 2019, at 13:06, João Miguel Neves notifications@github.com wrote:
Do you see the time when you access /dev/?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
https://um8wz2hhyh.execute-api.us-east-1.amazonaws.com/dev/ that’s the link
Sent from my iPhone
On Apr 3, 2019, at 14:00, Shekar Tippur ctippur@gmail.com wrote:
It’s the same case
Sent from my iPhone
On Apr 3, 2019, at 13:06, João Miguel Neves notifications@github.com wrote:
Do you see the time when you access /dev/?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
Any takers on this please? I am completely blocked.
Hi, it looks like you may have figured this out already. Based on this issue , try updating your zappa_settings.json line from
"app_function": "swagger_server.app.app"
to
"app_function": "swagger_server.app"
Hi all, I faced the same issue and came here for the solution, and @michellecsw comment helped me a lot.
For any one who's reading this comment, I believe in any case if you get Code: 404 for the API request you may find this issue here. This is actually not an issue in the zappa library. When we prepare the zappa settings file, we need to make sure Flask app is accessible from zappa framework. i.e. lambda handler in zappa only calls the method app.run(port=PORT)
. Hence the prerequisites for creating app
object must be done.
Context
I am using connexion for my Flask application. I am getting a 404 error \ while accessing teh endpoint. I have tried to dummy down the issue I am facing at https://github.com/ctippur/zappa-connexion-sample
I have had success deploying applications using connexion and zappa. I am trying to use newer versions of the libraries to deploy code. Looks like the app gets initialized but I get a 404 error on any endpoint. I am able to test locally without any issues. I also downloaded the lambda code and was able to run the application locally as well.
My python version is 3.6.3 Zappa version - 0.48.2
Expected Behavior
The '/' endpoint should return the current time.
Actual Behavior
I get a 404 error.
Possible Fix
Steps to Reproduce
https://github.com/ctippur/zappa-connexion-sample/blob/master/README.md
Your Environment
pip freeze
:https://github.com/ctippur/zappa-connexion-sample/blob/master/requirements.txtzappa_settings.py
: https://github.com/ctippur/zappa-connexion-sample/blob/master/zappa_settings.json