Cannot Resolve 502 Error

AzureUser 6 Reputation points
2021-04-07T22:53:38.193+00:00

We consistently get this error after using the web app for short periods of time:

85485-image.png

I have been through this document, but have not found a solution yet. There is a public IP address in front of the web app. I think that this is a gateway and they gateway is not getting a response from the back-end API, but I don't have any logs at the IP address level to know whether this is true or not. I have mostly been focusing on the Application Insights logs. I don't see any exceptions or other information that tells me that the back-end is having any issues. The app mostly works OK, and then stops responding. The app doesn't seem to have any issues when I run it locally.

This is the memory working set metric for the web app. It does seem to rise until it drops right off, but I can't find any correlation with the 502s at this time.

85502-image.png

CPU time, again with some strange spikes.

85449-image.png

In the gateway logs, I see lots of httpStatus_d = 502 messages, but they don't really tell me anything. They don't tell me what Url in the back-end the browser was trying to hit, so I can't diagnose the issue.

Edit: actually I was wrong. ^^ the request Url is in the requestUri_s column in the logs. This looks like it might help a lot.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,944 questions
{count} votes