question

ChaitanyaNaykodiMSFT-9638 avatar image
0 Votes"
ChaitanyaNaykodiMSFT-9638 asked JahnaviValluri-4558 answered

502 Errors

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-webapps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JahnaviValluri-4558 avatar image
1 Vote"
JahnaviValluri-4558 answered

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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.