.NET Hub
Published in

.NET Hub

Increase the timeout of .NET/.NET Core Applications

Increase Request Timeout: Timeouts with long running ASP.NET Core/.NET Controller methods.

Increase the timeout of .NET/.NET Core Applications

If you’re using ASP.NET Core 2.x/3.x and .NET 5.x API and deploying to an Azure App Service, then you might run into an issue where it takes a process request longer than 2 minutes to complete. You’ll typically get a 502 Bad Gateway with the following info:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ashish Patel

Ashish Patel

6.5K Followers

Cloud Architect • 2x AWS Certified • 6x Azure Certified • 2x OCI Certified • MCP • .NET • Kubernetes • Terraform • GCP • DevOps • (https://iamaashishpatel.ml)