dipoletechi
dipoletechi

Reputation: 41

502 - Web server received an invalid response while acting as a gateway or proxy server on azure web app

I have hosted one web app on azure but suddenly it started to give error. I am not what is the issue previously it was working very fine. Suddenly it stops working.

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.

Upvotes: 7

Views: 34305

Answers (2)

dipoletechi
dipoletechi

Reputation: 41

Scale up the application to Medium in order to change the instance where your application is running.

Wait some minutes and check again your site

The above change will change the worker instance. This in order to discard a platform issue , or worker affinity issue

Upvotes: 1

Nancy Xiong
Nancy Xiong

Reputation: 28204

Many reasons could cause 502 errors.

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 can follow these troubleshooting steps to identify which one as your side. 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. You also can open a support ticket to contact the Azure experts.

Hope this helps.

Upvotes: 3

Related Questions