My visual sTdio has successfuly deployed my app to our app service howevcer i got an 502 - Web server received an invalid response while acting as a gateway or proxy server.

Barrymx 1 Reputation point
2022-09-08T23:20:19.6+00:00

My visual sTudio has successfuly deployed my app to our app service howevcer i got an 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.
6,866 questions
{count} votes

1 answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 18,191 Reputation points Microsoft Employee
    2022-09-09T06:33:57.417+00:00

    @Barrymx Thank you for reaching out to Microsoft Q&A. Apologize for the inconvenience caused on this.

    As @Takahito Iwasa suggested you can Enable diagnostic logging for your webapp and troubleshoot or you can run the Availability and Performance (under Diagnose and solve problems).

    In general, 502 errors 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 this article Troubleshoot HTTP errors of "502 bad gateway" and "503 service unavailable" in Azure App Service to identify the issue as well.

    Feel free to reach back to me if you have any further questions on this.