System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
Stacktrace
```text
at System.Net.Http.HttpClient.HandleFailure(Exception e, Boolean telemetryStarted, HttpResponseMessage response, CancellationTokenSource cts, CancellationToken cancellationToken, CancellationTokenSource pendingRequestsCts)
at System.Net.Http.HttpClient.g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Microsoft.AspNetCore.Mvc.FunctionalTests.RoutingGroupsWithMetadataTests.OrderedGroupMetadataForControllers() in /_/src/Mvc/test/Mvc.FunctionalTests/RoutingGroupsWithMetadataTest.cs:line 29
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
----- Inner Stack Trace -----
at Microsoft.AspNetCore.TestHost.ResponseBodyReaderStream.ReadAsync(Memory`1 buffer, CancellationToken cancellationToken) in /_/src/Hosting/TestHost/src/ResponseBodyReaderStream.cs:line 84
at System.IO.Stream.g__Core|27_0(Stream source, Stream destination, Int32 bufferSize, CancellationToken cancellationToken)
at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
at System.Net.Http.HttpClient.g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
```
Logs
```text
[0.001s] [TestLifetime] [Information] Starting test OrderedGroupMetadataForControllers at 2024-09-26T00:59:17
[0.035s] [Microsoft.AspNetCore.Hosting.Diagnostics] [Debug] Hosting starting
[0.036s] [Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderFactory] [Debug] Registered model binder providers, in the following order: ["Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BinderTypeModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ServicesModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.HeaderModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.FloatingPointTypeModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.EnumTypeModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.DateTimeModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.SimpleTypeModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.TryParseModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CancellationTokenModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ByteArrayModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.FormFileModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.FormCollectionModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.KeyValuePairModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.DictionaryModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ArrayModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ComplexObjectModelBinderProvider"]
[0.052s] [Microsoft.AspNetCore.Hosting.Diagnostics] [Debug] Hosting started
[0.052s] [Microsoft.AspNetCore.Hosting.Diagnostics] [Debug] Loaded hosting startup assembly Mvc.RoutingWebSite
[175.325s] [Microsoft.AspNetCore.Hosting.Diagnostics] [Information] Request starting HTTP/1.1 GET http://localhost/group1/metadata - null null
[175.367s] [Microsoft.AspNetCore.Routing.Matching.DfaMatcher] [Debug] 1 candidate(s) found for the request path '/group1/metadata'
[175.373s] [Microsoft.AspNetCore.Routing.Matching.DfaMatcher] [Debug] Endpoint 'Mvc.RoutingWebSite.Controllers.ConventionalControllerWithMetadata.GetMetadata (Mvc.RoutingWebSite)' with route pattern '/group1/metadata' is valid for the request path '/group1/metadata'
[175.375s] [Microsoft.AspNetCore.Routing.EndpointRoutingMiddleware] [Debug] Request matched endpoint 'Mvc.RoutingWebSite.Controllers.ConventionalControllerWithMetadata.GetMetadata (Mvc.RoutingWebSite)'
[175.378s] [Microsoft.AspNetCore.Routing.EndpointMiddleware] [Information] Executing endpoint 'Mvc.RoutingWebSite.Controllers.ConventionalControllerWithMetadata.GetMetadata (Mvc.RoutingWebSite)'
[175.402s] [Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker] [Information] Route matched with {action = "GetMetadata", controller = "ConventionalControllerWithMetadata"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult GetMetadata() on controller Mvc.RoutingWebSite.Controllers.ConventionalControllerWithMetadata (Mvc.RoutingWebSite).
[175.408s] [Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker] [Debug] Execution plan of authorization filters (in the following order): ["None"]
[175.408s] [Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker] [Debug] Execution plan of resource filters (in the following order): ["None"]
[175.410s] [Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker] [Debug] Execution plan of action filters (in the following order): ["Microsoft.AspNetCore.Mvc.Filters.ControllerActionFilter (Order: -2147483648)", "Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter (Order: -3000)"]
[175.410s] [Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker] [Debug] Execution plan of exception filters (in the following order): ["None"]
[175.410s] [Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker] [Debug] Execution plan of result filters (in the following order): ["None"]
[175.416s] [Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker] [Debug] Executing controller factory for controller Mvc.RoutingWebSite.Controllers.ConventionalControllerWithMetadata (Mvc.RoutingWebSite)
[175.419s] [Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker] [Debug] Executed controller factory for controller Mvc.RoutingWebSite.Controllers.ConventionalControllerWithMetadata (Mvc.RoutingWebSite)
[175.429s] [Microsoft.AspNetCore.Mvc.Infrastructure.DefaultOutputFormatterSelector] [Debug] List of registered output formatters, in the following order: ["Microsoft.AspNetCore.Mvc.Formatters.HttpNoContentOutputFormatter", "Microsoft.AspNetCore.Mvc.Formatters.StringOutputFormatter", "Microsoft.AspNetCore.Mvc.Formatters.StreamOutputFormatter", "Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatter"]
[175.430s] [Microsoft.AspNetCore.Mvc.Infrastructure.DefaultOutputFormatterSelector] [Debug] No information found on request to perform content negotiation.
[175.431s] [Microsoft.AspNetCore.Mvc.Infrastructure.DefaultOutputFormatterSelector] [Debug] Attempting to select an output formatter without using a content type as no explicit content types were specified for the response.
[175.431s] [Microsoft.AspNetCore.Mvc.Infrastructure.DefaultOutputFormatterSelector] [Debug] Attempting to select the first formatter in the output formatters list which can write the result.
[175.433s] [Microsoft.AspNetCore.Mvc.Infrastructure.DefaultOutputFormatterSelector] [Debug] Selected output formatter 'Microsoft.AspNetCore.Mvc.Formatters.SystemTextJsonOutputFormatter' and content type 'application/json' to write the response.
[175.433s] [Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor] [Information] Executing OkObjectResult, writing value of type 'System.Linq.Enumerable+ArraySelectIterator`2[[Mvc.RoutingWebSite.Infrastructure.MetadataAttribute, Mvc.RoutingWebSite, Version=42.42.42.42, Culture=neutral, PublicKeyToken=adb9793829ddae60],[System.String, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'.
[175.470s] [Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker] [Information] Executed action Mvc.RoutingWebSite.Controllers.ConventionalControllerWithMetadata.GetMetadata (Mvc.RoutingWebSite) in 53.629ms
[175.471s] [Microsoft.AspNetCore.Routing.EndpointMiddleware] [Information] Executed endpoint 'Mvc.RoutingWebSite.Controllers.ConventionalControllerWithMetadata.GetMetadata (Mvc.RoutingWebSite)'
[175.476s] [Microsoft.AspNetCore.Hosting.Diagnostics] [Information] Request finished HTTP/1.1 GET http://localhost/group1/metadata - 200 null application/json; charset=utf-8 153.536ms
[177.689s] [Microsoft.AspNetCore.Mvc.FunctionalTests.RoutingGroupsWithMetadataTests] [Error] Test threw an exception.
System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
---> System.TimeoutException: The operation was canceled.
---> System.OperationCanceledException: The operation was canceled.
at System.Threading.CancellationToken.ThrowOperationCanceledException()
at System.Threading.CancellationToken.ThrowIfCancellationRequested()
at System.IO.Pipelines.Pipe.GetReadAsyncResult()
at Microsoft.AspNetCore.TestHost.ResponseBodyReaderStream.ReadAsync(Memory`1 buffer, CancellationToken cancellationToken) in /_/src/Hosting/TestHost/src/ResponseBodyReaderStream.cs:line 87
at System.IO.Stream.g__Core|30_0(Stream source, Stream destination, Int32 bufferSize, CancellationToken cancellationToken)
at System.Net.Http.StreamToStreamCopy.g__DisposeSourceAsync|1_0(Task copyTask, Stream source)
at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
at System.Net.Http.HttpClient.g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at System.Net.Http.HttpClient.HandleFailure(Exception e, Boolean telemetryStarted, HttpResponseMessage response, CancellationTokenSource cts, CancellationToken cancellationToken, CancellationTokenSource pendingRequestsCts)
at System.Net.Http.HttpClient.g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Microsoft.AspNetCore.Mvc.FunctionalTests.RoutingGroupsWithMetadataTests.OrderedGroupMetadataForControllers() in /_/src/Mvc/test/Mvc.FunctionalTests/RoutingGroupsWithMetadataTest.cs:line 39
at Xunit.Sdk.TestInvoker`1.<>c__DisplayClass46_0.<b__1>d.MoveNext() in /_/src/xunit.execution/Sdk/Frameworks/Runners/TestInvoker.cs:line 253
--- End of stack trace from previous location ---
at Xunit.Sdk.ExecutionTimer.AggregateAsync(Func`1 asyncAction) in /_/src/xunit.execution/Sdk/Frameworks/ExecutionTimer.cs:line 48
at Xunit.Sdk.ExceptionAggregator.RunAsync(Func`1 code) in /_/src/xunit.core/Sdk/ExceptionAggregator.cs:line 90
[177.690s] [Microsoft.AspNetCore.Hosting.Diagnostics] [Debug] Hosting shutdown
[177.690s] [TestLifetime] [Information] Finished test OrderedGroupMetadataForControllers in 177.6892563s
```
Failing Test(s)
Error Message
Stacktrace
Logs
Build
aspnetcore-ci 5/27/2024, 9:26:42 AM