Getting 502, BadGateway error part of the Service Fabric ASP.Net core web API.
One of the Put Method I have got part of a controller takes more than 10 mins to execute, But I'm getting 502/BadGateway response in 2 mins time. I have done the following bits.
Setting timeout part of KestrelCommunicationListener
return new WebHostBuilder()
.UseKestrel(o => {o.Limits.KeepAliveTimeout = TimeSpan.FromHours(1);})
.ConfigureServices(
services => services
.AddSingleton(serviceContext))
.UseContentRoot(Directory.GetCurrentDirectory())
.UseStartup()
.UseServiceFabricIntegration(listener, ServiceFabricIntegrationOptions.None)
.UseUrls(url)
.Build();
Also set the time out in web.config.
Have also set the client timeout part of HttpClient initialization.
Hi,
Getting 502, BadGateway error part of the Service Fabric ASP.Net core web API.
One of the Put Method I have got part of a controller takes more than 10 mins to execute, But I'm getting 502/BadGateway response in 2 mins time. I have done the following bits.
Setting timeout part of KestrelCommunicationListener return new WebHostBuilder() .UseKestrel(o => {o.Limits.KeepAliveTimeout = TimeSpan.FromHours(1);}) .ConfigureServices( services => services .AddSingleton(serviceContext))
.UseContentRoot(Directory.GetCurrentDirectory())
.UseStartup()
.UseServiceFabricIntegration(listener, ServiceFabricIntegrationOptions.None) .UseUrls(url) .Build();
Also set the time out in web.config.
Have also set the client timeout part of HttpClient initialization.
Please let me know how I can resolve this issue.