Azure Function - HTTP trigger - Intermittent 502 errors

sagarali98 1 Reputation point
2021-06-10T10:55:05.407+00:00

I have a Azure Function app with a HTTP trigger endpoint that intermittently returns 502 errors. I've not been able to see anyting in the Application Insights logs that would point to the endpoint exceeding the 430 second limit. Max request time is around 7 seconds. The endpoint is connecting to a Azure Redis cache and in case of the data not being cached getting the data from a Azure SQL database using EF Core. The function app is running in a dedicated app service plan. I've read this documentation: https://learn.microsoft.com/en-us/azure/app-service/troubleshoot-http-502-http-503 without it helping me find a solution https://tinyurl.com/2wj8rd39 to the issue. Like this question https://learn.microsoft.com/en-us/answers/questions/428059/c-azure-function-returning-502-bad-gateway-but-no.html I'm not seeing any errors in the AI logs.

Any thoughts appreciated. Regards, Oskar

Azure RTOS
Azure RTOS
An Azure embedded development suite including a small but powerful operating system for resource-constrained devices.
319 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,119 questions
{count} votes