Intermittent error in Azure App

R LMMS 1 Reputation point

Dear Team,

I'm facing intermittent error after successful deployment of application.


Some time I get 502

502 - Web server received an invalid response while acting as a gateway or proxy server.
There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.

and sometime I get application error

:( Application Error If you are the application administrator, you can access the diagnostic resources.

Tried removing Cache and everything.

May I know why this errors poping?


Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,345 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 20,396 Reputation points

    Thanks for asking question! There could be many reasons for 502 errors.
    To add to above this problem is often caused by application level issues, such as requests taking a long time; application using high memory/CPU; application crashing due to an exception.

    You may follow this article Troubleshoot HTTP errors of "502 bad gateway" and "503 service unavailable" in Azure App Service to identify the issue, Also, make sure there is no network connection broken on your side.

    If the web app still does not work, you can try to re-deploy it.
    Hope this helps.