Flask App Issues When Deployed on Azure Web Service

Tareq El-Sayyed 0 Reputation points
2024-05-29T08:58:23.5833333+00:00

So, I have a classification model saved as "model.h5" and a Flask app with 2 routes (/test which is a GET route & the /predict route which is a POST one).

When testing the Flask app on Postman it works normally. Then I created a Web Service and went through all the steps for the creation properly. GitHub gave me the 2 green ticks (everything is successful). The problem is when I try testing my route after deployment I keep getting a 404 error for some reason which I can't solve/figure out.

2024-05-29T08:52:20.8859272Z 169.254.129.1 - - [29/May/2024:08:52:20 +0000] "GET /test HTTP/1.1" 404 232 "-" "PostmanRuntime/7.39.0"

Postman Output:



<h1>Not Found</h1>
<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,985 questions
{count} votes