Share via

500 - Internal Server Error and Gateway Timeout Error

Muralidharan, Chetana 6 Reputation points
2022-06-15T07:16:39.067+00:00

Hello,
I have deployed a python flask app onto azure as an app service with linux as the operating system. The flask application works completely fine locally. However, the web app tends to have a very high response time and works occasionally but predominantly throws 500 internal server error or 504 Gateway Time out error when called through a .net application and via postman.

Can someone help me out with this issue?

Thanks
Chetana

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Udaiappa Ramachandran 726 Reputation points MVP
    2022-06-16T01:08:07.637+00:00

    Hello @Muralidharan, Chetana ,
    I am not a python expert, you may need to increase the timeout using the startup file please refer Flask startup section from https://learn.microsoft.com/en-us/azure/developer/python/tutorial-deploy-app-service-on-linux-04

    and also make sure that the Configuration->General Settings->Always On Set to "On"

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.