0 votes
1 view
in Azure by (8.1k points)

I'm trying to host an azure website and tried troubleshooting for a few hours, but still keep getting the same error 502 Web server received an invalid response while acting as a gateway or proxy server.

I tried enabling logging errors on azure, but all it gives me are 404 not found errors

1 Answer

0 votes
by (15.4k points)

An HTTP 502 error is not logged by IIS because it is not a server issue. This problem is often caused by application level issues, like requests taking a long time 

application crashing due to an exception. You need to troubleshoot your front-end code and front-end server. You can follow Microsoft's troubleshooting guide for this.

...