Reputation: 31
I am new to Google App Engine and just deployed a sample project "flask" to my GAE. But it shows
"Error: Server Error The server encountered an error and could not complete your request. Please try again in 30 seconds."
I have read a lot of similar questions on stackoverflow, but I don't find any who has this problem even for the sample project provided by GAE itself.
Upvotes: 1
Views: 1338
Reputation: 171
I just ran into this issue and found the answer in the sample project README file. The problem was that flask isn't included in the sample project, so I was getting an flask import error. You just have to cd to your project directory (appengine-flask-skeleton-master) and run the following...
pip install -r requirements.txt -t lib
If you are on linux you will probably need to include sudo before the command.
You should now see flask in the lib folder in the sample project directory. If you update your project again, the import error should be resolved.
You can test your app locally by running:
dev_appserver.py .
Hope that helps.
Upvotes: 1