- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
Nvm, I misread the instructions. This error comes up before appending mysfits into the url, and doesn't seem to require any change.
Actually, this really is a problem. The mysfits service works OK, but the healthcheck service ("/") does not, and gets the above exception. This causes the health check to fail and hence the service container to be stopped/restarted every few minutes, and the app doesn't work reliably.
Been scratching my head on this one for a couple of days, being totally new to AWS I thought it was an AWS thing not a python thing.
See https://github.com/pallets/flask/issues/3493 for the underlying flask problem - one of the dependent modules (Werkzeug) was updated and removed a deprecated feature that flask 0.12 still requires.
Forcing flask to 0.12.5 seems to fix it for me:
diff --git a/module-2/app/service/requirements.txt b/module-2/app/service/requirements.txt
index 46ec477..8125a26 100644
--- a/module-2/app/service/requirements.txt
+++ b/module-2/app/service/requirements.txt
@@ -1,3 +1,3 @@
-Flask==0.12.2
+Flask==0.12.5
flask-cors==3.0.0
boto3==1.7.16
Remember to make the same change in subsequent modules of the tutorial.
Edited by: MilkmanGB on Mar 19, 2020 10:31 PM
Need to make the same change on all modules
Contenuto pertinente
- AWS UFFICIALEAggiornata un anno fa