Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting "Bad Request" when dataset is huge #32

Open
ajitsinghit2 opened this issue Mar 18, 2021 · 0 comments
Open

Getting "Bad Request" when dataset is huge #32

ajitsinghit2 opened this issue Mar 18, 2021 · 0 comments

Comments

@ajitsinghit2
Copy link

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] 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()"
]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant