Relative Content

Tag Archive for dockerflaskuvicornconnexion

Flask & Connexion in Docker Call Flask UI but not API

I have a Flask/Connexion application that provides a UI in Flask and an API via Connexion. When I run it using the default Flask server, everything runs fine – I see my UI and can call my API. However, when I run it from a Docker container I still get the Flask UI but every one of my API calls is routed to my Flask 404 error handler. In the error handler, I print out the URLs using str(request.url) and can see that the URL being called is correct. Why is connexion not routing these calls to the handlers specified in my api.json file?