You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Minimal steps to reproduce
Looking for the data where time span is 10 days and interval is 5 sec. Getting "Bad Request"
Any log messages given by the failure
Expected/desired behavior
Should get a response with continuation token to continue to get next set of data
OS and Version?
Windows 10
Versions
"api-version": "2020-07-31",
Mention any other details that might be useful
When interval is 10 seconds for the same request then it is a success.
Exception:
{
"Message": "An error has occurred.",
"ExceptionMessage": "One or more errors occurred. (One or more errors occurred. (Operation returned an invalid status code 'BadRequest')) (One or more errors occurred. (A task was canceled.))",
"ExceptionType": "System.AggregateException",
"StackTrace": [
" at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction1 action, ParallelOptions options, Boolean stopOnFirstFailure)\r", " at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally)\r",
"--- End of stack trace from previous location where exception was thrown ---\r",
" at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(Exception source)\r",
" at System.Threading.Tasks.Parallel.ThrowSingleCancellationExceptionOrOtherException(ICollection exceptions, CancellationToken cancelToken, Exception otherException)\r",
" at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally)\r", " at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IList1 list, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally)\r", " at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable1 source, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally)\r", " at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable1 source, Action1 body)\r", " at Wenco.TimeSeriesInsights.Wrapper.Services.TimeSeriesInsightsService.GetAggregateSeriesAsync(TSISelectedSensorDataRequest request, Nullable1 aggregationLevel) in D:\Wenco\EventManagementService\Infrastructure\Wenco.TimeSeriesInsights.Wrapper\Services\TimeSeriesInsightsService.cs:line 142\r",
" at Wenco.TimeSeriesInsights.Wrapper.RequestHandlers.TimeSeriesInsightsRequestHandler.HandleGetSelectedSensorDataAsync(TSISelectedSensorDataRequest request, Nullable1 aggregationLevel) in D:\\Wenco\\EventManagementService\\Infrastructure\\Wenco.TimeSeriesInsights.Wrapper\\RequestHandlers\\ITimeSeriesInsightsRequestHandler.cs:line 33\r", " at Wenco.EventManagement.RequestHandlers.VirtualEventRequestHandler.GetDataFromTSI(TestingVirtualEventRequest validateVirtualEventrequest, VirtualEventEntity virtualEvent, IServiceContext serviceContext) in D:\\Wenco\\EventManagementService\\Application\\Wenco.EventManagement.Handlers\\IVirtualEventRequestHandler.cs:line 721\r", " at Wenco.EventManagement.RequestHandlers.VirtualEventRequestHandler.HandleTestingVirtualEventAsync(TestingVirtualEventRequest validateVirtualEventrequest, IServiceContext serviceContext) in D:\\Wenco\\EventManagementService\\Application\\Wenco.EventManagement.Handlers\\IVirtualEventRequestHandler.cs:line 644\r", " at Wenco.EventManagement.Api.v1.Controllers.VirtualEventController.<>c__DisplayClass12_0.<<TestingVirtualEventAsync>b__0>d.MoveNext() in D:\\Wenco\\EventManagementService\\Application\\Wenco.EventManagement.Api\\v1\\Controllers\\VirtualEventController.cs:line 143\r", "--- End of stack trace from previous location where exception was thrown ---\r", " at Wenco.EventManagement.Api.v1.Controllers.BaseController1.ProcessRequest[T](Func1 methodToCall, HttpStatusCode httpStatus) in D:\\Wenco\\EventManagementService\\Application\\Wenco.EventManagement.Api\\v1\\Controllers\\BaseController.cs:line 29\r", " at Wenco.EventManagement.Api.v1.Controllers.VirtualEventController.TestingVirtualEventAsync(TestingVirtualEventRequest request) in D:\\Wenco\\EventManagementService\\Application\\Wenco.EventManagement.Api\\v1\\Controllers\\VirtualEventController.cs:line 143\r", " at lambda_method(Closure , Object )\r", " at Microsoft.Extensions.Internal.ObjectMethodExecutorAwaitable.Awaiter.GetResult()\r", " at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r", " at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask1 actionResultValueTask)\r",
" at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\r",
" at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\r",
" at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r",
" at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\r",
" at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)"
],
"InnerExceptionMessage": "One or more errors occurred. (Operation returned an invalid status code 'BadRequest')",
"InnerExceptionType": "System.AggregateException",
"InnerExceptionStackTrace": [
" at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)\r",
" at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification)\r", " at System.Threading.Tasks.Task1.get_Result()\r",
" at Wenco.TimeSeriesInsights.Wrapper.Services.TimeSeriesInsightsService.<>c__DisplayClass3_1.b__1(SensorData sensor) in D:\Wenco\EventManagementService\Infrastructure\Wenco.TimeSeriesInsights.Wrapper\Services\TimeSeriesInsightsService.cs:line 195\r",
" at System.Threading.Tasks.Parallel.<>c__DisplayClass19_01.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)\r", "--- End of stack trace from previous location where exception was thrown ---\r", " at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(Exception source)\r", " at System.Threading.Tasks.Parallel.<>c__DisplayClass19_01.b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)\r",
" at System.Threading.Tasks.TaskReplicator.Replica.Execute()"
]
}
The text was updated successfully, but these errors were encountered:
This issue is for a: (mark with an
x
)Minimal steps to reproduce
Looking for the data where time span is 10 days and interval is 5 sec. Getting "Bad Request"
Any log messages given by the failure
Expected/desired behavior
Should get a response with continuation token to continue to get next set of data
OS and Version?
Versions
"api-version": "2020-07-31",
Mention any other details that might be useful
When interval is 10 seconds for the same request then it is a success.
Exception:
{
"Message": "An error has occurred.",
"ExceptionMessage": "One or more errors occurred. (One or more errors occurred. (Operation returned an invalid status code 'BadRequest')) (One or more errors occurred. (A task was canceled.))",
"ExceptionType": "System.AggregateException",
"StackTrace": [
" at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction
1 action, ParallelOptions options, Boolean stopOnFirstFailure)\r", " at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action
1 body, Action2 bodyWithState, Func
4 bodyWithLocal, Func1 localInit, Action
1 localFinally)\r","--- End of stack trace from previous location where exception was thrown ---\r",
" at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(Exception source)\r",
" at System.Threading.Tasks.Parallel.ThrowSingleCancellationExceptionOrOtherException(ICollection exceptions, CancellationToken cancelToken, Exception otherException)\r",
" at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action
1 body, Action
2 bodyWithState, Func4 bodyWithLocal, Func
1 localInit, Action1 localFinally)\r", " at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IList
1 list, ParallelOptions parallelOptions, Action1 body, Action
2 bodyWithState, Action3 bodyWithStateAndIndex, Func
4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func
1 localInit, Action1 localFinally)\r", " at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable
1 source, ParallelOptions parallelOptions, Action1 body, Action
2 bodyWithState, Action3 bodyWithStateAndIndex, Func
4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func
1 localInit, Action1 localFinally)\r", " at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable
1 source, Action1 body)\r", " at Wenco.TimeSeriesInsights.Wrapper.Services.TimeSeriesInsightsService.GetAggregateSeriesAsync(TSISelectedSensorDataRequest request, Nullable
1 aggregationLevel) in D:\Wenco\EventManagementService\Infrastructure\Wenco.TimeSeriesInsights.Wrapper\Services\TimeSeriesInsightsService.cs:line 142\r"," at Wenco.TimeSeriesInsights.Wrapper.RequestHandlers.TimeSeriesInsightsRequestHandler.HandleGetSelectedSensorDataAsync(TSISelectedSensorDataRequest request, Nullable
1 aggregationLevel) in D:\\Wenco\\EventManagementService\\Infrastructure\\Wenco.TimeSeriesInsights.Wrapper\\RequestHandlers\\ITimeSeriesInsightsRequestHandler.cs:line 33\r", " at Wenco.EventManagement.RequestHandlers.VirtualEventRequestHandler.GetDataFromTSI(TestingVirtualEventRequest validateVirtualEventrequest, VirtualEventEntity virtualEvent, IServiceContext serviceContext) in D:\\Wenco\\EventManagementService\\Application\\Wenco.EventManagement.Handlers\\IVirtualEventRequestHandler.cs:line 721\r", " at Wenco.EventManagement.RequestHandlers.VirtualEventRequestHandler.HandleTestingVirtualEventAsync(TestingVirtualEventRequest validateVirtualEventrequest, IServiceContext serviceContext) in D:\\Wenco\\EventManagementService\\Application\\Wenco.EventManagement.Handlers\\IVirtualEventRequestHandler.cs:line 644\r", " at Wenco.EventManagement.Api.v1.Controllers.VirtualEventController.<>c__DisplayClass12_0.<<TestingVirtualEventAsync>b__0>d.MoveNext() in D:\\Wenco\\EventManagementService\\Application\\Wenco.EventManagement.Api\\v1\\Controllers\\VirtualEventController.cs:line 143\r", "--- End of stack trace from previous location where exception was thrown ---\r", " at Wenco.EventManagement.Api.v1.Controllers.BaseController
1.ProcessRequest[T](Func1 methodToCall, HttpStatusCode httpStatus) in D:\\Wenco\\EventManagementService\\Application\\Wenco.EventManagement.Api\\v1\\Controllers\\BaseController.cs:line 29\r", " at Wenco.EventManagement.Api.v1.Controllers.VirtualEventController.TestingVirtualEventAsync(TestingVirtualEventRequest request) in D:\\Wenco\\EventManagementService\\Application\\Wenco.EventManagement.Api\\v1\\Controllers\\VirtualEventController.cs:line 143\r", " at lambda_method(Closure , Object )\r", " at Microsoft.Extensions.Internal.ObjectMethodExecutorAwaitable.Awaiter.GetResult()\r", " at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r", " at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask
1 actionResultValueTask)\r"," at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\r",
" at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\r",
" at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r",
" at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\r",
" at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)"
],
"InnerExceptionMessage": "One or more errors occurred. (Operation returned an invalid status code 'BadRequest')",
"InnerExceptionType": "System.AggregateException",
"InnerExceptionStackTrace": [
" at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)\r",
" at System.Threading.Tasks.Task
1.GetResultCore(Boolean waitCompletionNotification)\r", " at System.Threading.Tasks.Task
1.get_Result()\r"," at Wenco.TimeSeriesInsights.Wrapper.Services.TimeSeriesInsightsService.<>c__DisplayClass3_1.b__1(SensorData sensor) in D:\Wenco\EventManagementService\Infrastructure\Wenco.TimeSeriesInsights.Wrapper\Services\TimeSeriesInsightsService.cs:line 195\r",
" at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0
1.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)\r", "--- End of stack trace from previous location where exception was thrown ---\r", " at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(Exception source)\r", " at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0
1.b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)\r"," at System.Threading.Tasks.TaskReplicator.Replica.Execute()"
]
}
The text was updated successfully, but these errors were encountered: