I meet a problems when deploy my code to Azure Funtions using App Service Plan. My function is long running (about 4 minutes, for business logic) and when I call it by Post man, it response 502.
The specified CGI application encountered an error and the server terminated the process.
In this time my function is still running, I monitor on the portal of Function Apps and it return a success response after 4 minutes, but I meet error and can not receive the response when call from client.
Response Message & Status Code Response Header
I read below link and see that may be the limitation is from Azure App Service Plan, but how to config ASP to solve this error ?
Some information: - Azure Functions V2. - App Service Plan S1 Standard, 2 instances.
The specified CGI application encountered an error and the server terminated the process