{"data":{"exception":"InvalidOperationException","message":"An exception has been raised that is likely due to a transient failure.","helpLink":null,"data":{},"source":"Npgsql.EntityFrameworkCore.PostgreSQL","stackTrace":" at Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)\n at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.Enumerator.MoveNext()\n at System.Linq.Enumerable.TryGetSingle[TSource](IEnumerable`1 source, Boolean& found)\n at lambda_method141766(Closure , QueryContext )\n at Redsand.Site.Api.FbCampaignsController.GetCustomerCount(Nullable`1 pageId, FbMsgType msgType, Nullable`1 gender, Nullable`1 sendDate, Nullable`1 target, Int32[] customerIds, Int32[] categoryIds, Int32[] excludeCategoryIds, Int32[] processStepIds, CampaignCondition condition, IntRange sentFacebookMessageRange, Int32[] buyProductIds, Int32[] buyProductCategoryIds, DateTime[] buyRangeDate, DateTime[] notBuyRangeDate, DateTime[] excludeBuyRangeDate, DateTime[] excludeNotBuyRangeDate, Nullable`1 buyTo, Nullable`1 buyFrom, Nullable`1 interactivePeriod, CampaignBuyType buyType, Nullable`1 BuyIterationType, Nullable`1 NotBuyIterationType, Nullable`1 BuyTime, Nullable`1 NotBuyTime, Int32[] customerTagIds, Int32[] excludeCustomerTagIds, Int32[] conversationTagIds, Int32[] excludeConversationTagIds, Boolean sendExtension) in E:\\redsand\\inven-check\\Api\\Facebook\\CampaignController.cs:line 1076\n at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)","inner":{"exception":"NpgsqlException","message":"Exception while reading from stream","helpLink":null,"data":{},"source":"Npgsql","stackTrace":" at Npgsql.Internal.NpgsqlConnector.<ReadMessage>g__ReadMessageLong|223_0(NpgsqlConnector connector, Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)\n at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)\n at Npgsql.NpgsqlDataReader.NextResult()\n at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior, Boolean async, CancellationToken cancellationToken)\n at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior, Boolean async, CancellationToken cancellationToken)\n at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior)\n at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject)\n at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)","inner":{"exception":"TimeoutException","message":"Timeout during reading attempt","helpLink":null,"data":{},"source":null,"stackTrace":null,"inner":null}}},"status":400,"statusText":"","headers":{"cache-control":"no-store","content-type":"application/json; charset=utf-8","date":"Thu, 11 Dec 2025 07:01:13 GMT","expires":"0","pragma":"no-cache","server":"nginx/1.28.0"},"config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"adapter":["xhr","http","fetch"],"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":{},"headers":{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjUiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoibnYxIiwiQXNwTmV0LklkZW50aXR5LlNlY3VyaXR5U3RhbXAiOiJTWFlVSlVSVUtHQTRKUllDR0VSNUlPNEhNRlI2TUxNTCIsInN1YiI6Im52MSIsImp0aSI6ImE0N2QwNjNiLTdiMzYtNGE2Ni1iOWI4LTIwMDRiMDViYWQ3MiIsImlhdCI6MTc2NTQxOTIwOSwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9yb2xlIjpbIjQtbnYtc2FsZSIsIjUtbnYtbWt0Il0sIm5iZiI6MTc2NTQxOTIwOSwiZXhwIjoxNzY1NTA1NjA5LCJpc3MiOiJSUyIsImF1ZCI6IlJTIn0.eLZ4yHHcS-l9aSlwGgDuODIL6_RMOQ1BzHR1JzUw9fg","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://suka68.dcso.pro","paramsSerializer":{},"params":{"timeDelaySend":20,"name":"5/6 - 7/6 lần 7","target":1,"gender":null,"customerIds":[],"categoryIds":[],"excludeCategoryIds":[],"sentFacebookMessageRange":{"from":null,"to":null},"sendExtension":true,"processStepIds":[],"buyProductIds":null,"notBuyRangeDate":[],"excludeNotBuyRangeDate":[],"buyRangeDate":[],"excludeBuyRangeDate":[],"buyTime":0,"pageId":"5","templateType":1,"campaignTemplateType":null,"templateId":null,"msgType":1,"filterId":2026,"platform":"NobiMess","limitMessage":0,"productShopeeId":[],"shopId":null,"timeStart":null,"timeEnd":null,"config":{"buttons":[{"label":"","payload":""}],"title":""},"condition":0},"method":"get","url":"api/facebook/campaign/count"},"request":{}}