Share via

502 Errors

ChaitanyaNaykodi-MSFT 27,671 Reputation points Microsoft Employee Moderator
2021-05-20T00:22:27.937+00:00

For the last nine hours, my web app has been giving the below error whenever using a browser to load the web app. What is causing this behavior?

502 - Web server received an invalid response while acting as a gateway or proxy server.

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

Answer accepted by question author

Jahnavi Valluri 241 Reputation points Microsoft Employee
2021-05-20T00:38:55.153+00:00

While there are several issues that can cause 502 errors, due to the length of time that your web app has been down, it’s a good guess that your web app is stuck in an unhealthy state. For a quick resolution, you can try to scale up to a higher tier app service plan, wait 15 minutes, and then scale back down to your original app service plan. This might bring your app back to a healthy state by removing the unhealthy instance(s) from the pool of available resources. More information on scaling can be found here.

Just remember to scale back down to avoid an increase in costs.

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most 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.