502 Exception - Azure Virtual Machine

328 views Asked by At

I have azure virtual machine, hosted angular application which is having NodeJs as a backend.

Sometimes it is throwing 502 exception.

502 Exception

If we refresh the page and try to hit the api then we get response. But, sometimes it throws 502 and tells nothing other than this. We tried capturing IIS logs, there also no info about this exception. Please help me to resolve this issue.

1

There are 1 answers

1
Himanshu Patni On

It is Server Side Problem. Kindly check the proxy or ip you're hitting. 502 Bad Gateway Error, which indicates that a server somewhere within the server stack — specifically, one which is acting as a gateway or proxy itself — received an invalid response from a different server.