| Time | Method | IP | Host | Path | Query | Status |
|---|---|---|---|---|---|---|
| 03/04 09:14 | GET | 100.96.1.48 | hunghung.nobi.pro | /SendFbCampaign/207810 | 500 | |
| 03/04 09:14 | GET | 100.96.1.48 | mrtrung.ecrm.vn | /SendFbCampaign/255863 | 500 | |
| 03/04 09:13 | GET | 100.96.1.48 | bshoang.nobi.pro | /api/voip/client/token | 400 | |
| 03/04 09:13 | PUT | 100.96.1.48 | 582-ptlim84a.dcso.pro | /api/orders/16091 | 400 | |
| 03/04 09:13 | GET | 100.96.1.48 | anhtt91.ecrm.vn | /SendFbCampaign/2513161 | 500 | |
| 03/04 09:12 | GET | 100.96.1.48 | havinh.nobi.pro | /SendFbCampaign/82060 | 500 | |
| 03/04 09:12 | POST | 100.96.1.48 | nobiv2-stable.ecrm.vn | /api/options | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vn | /api/users/inferior | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vnapi | /overview-report/density | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vn | /api/overview-report/top-campaign | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vn | /api/overview-report/ads | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vn | /api/overview-report/transport | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vn | /api/overview-report/inventory | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vn | /api/overview-report/reportSale | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vn | /api/overview-report/order-report | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vnapi | /application/new | 400 | |
| 03/04 09:12 | PUT | 100.96.1.48 | thaininhtra.dcso.pro | /api/orders/63639 | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vnapi | /task-manager | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vnapi | /task-manager/count | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | thammylavian.dcso.pro | /api/voip/client/token | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vn | /api/customViews | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vn | /api/ecom/account/shopcache | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vnapi | /product-categories/type | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vn | /api/loyalty | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vn | /api/departments | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vn | /api/transporters | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vn | /api/warehouse | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | thaininhtra.dcso.pro | /chat | 466 | |
| 03/04 09:12 | GET | 100.96.1.48 | tranyen.nobi.pro | /SendFbCampaign/9138 | 500 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vn | /api/tags | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vn | /api/fields | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vnapi | /notifications/checkNew | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vn | /api/users | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | uni.nobi.pro | /api/voip/client/token | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vn | /api/account | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vn | /api/branches | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | myphambamboo.dcso.pro | /SendFbCampaign/5312170 | 500 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vn | /api/options | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vn | /api/transporters/allTransportInfo | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vnapi | /voip/number | 400 | |
| 03/04 09:12 | GET | 100.96.1.48 | mrtrung.ecrm.vn | /SendFbCampaign/255858 | 500 | |
| 03/04 09:12 | GET | 100.96.1.48 | nobiv2-stable.ecrm.vn | /api/orders/transporter | 400 | |
| 03/04 09:11 | GET | 100.96.1.48 | maihuongvnxk.dcso.pro | /SendFbCampaign/29791 | 500 | |
| 03/04 09:11 | GET | 100.96.1.48 | tranyen.nobi.pro | /SendFbCampaign/9136 | 500 | |
| 03/04 09:10 | GET | 100.96.1.48 | vohuyen.dcso.pro | /SendFbCampaign/542449 | 500 | |
| 03/04 09:10 | GET | 100.96.1.48 | khosiphukiennu.dcso.pro | /SendFbCampaign/725118 | 500 | |
| 03/04 09:10 | GET | 100.96.1.48 | bshoang.nobi.pro | /api/voip/client/token | 400 | |
| 03/04 09:10 | GET | 100.96.1.48 | thoitrangcaocap6666.nobi.pro | /SendFbCampaign/1524185 | 500 | |
| 03/04 09:09 | GET | 100.96.1.48 | tranyen.nobi.pro | /SendFbCampaign/9135 | 500 | |
| 03/04 09:09 | GET | 100.96.1.48 | ikiza.nobi.pro | /api/voip/client/token | 400 | |
| 03/04 07:36 | GET | 100.96.1.48 | thoitrang360.dcso.pro | /api/transporters | 404 |
{"ClassName":"System.Exception","Message":"Không thể tải file lên facebook","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at Redsand.Site.Services.FbSender.SendAsync(FbCampaign campaign, FbMessage facebook, Boolean resend, ApplicationDbContext _db) in D:\\WORKSPACE\\ECRM-NOBI-R2\\NobiV2\\Services\\Facebook\\FbSender.cs:line 296\n at Redsand.Site.Services.FbSender.SendAsync(FbCampaign campaign, FbMessage facebook, Boolean resend, ApplicationDbContext _db) in D:\\WORKSPACE\\ECRM-NOBI-R2\\NobiV2\\Services\\Facebook\\FbSender.cs:line 296\n at Redsand.Site.Controllers.BackgroundController.SendFbCampaign(String camIds, Boolean debug) in D:\\WORKSPACE\\ECRM-NOBI-R2\\NobiV2\\Controllers\\BackgroundController.cs:line 802","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233088,"Source":"Redsand.Site","WatsonBuckets":null}
{}
{"ClassName":"System.Exception","Message":"(#10) Tin nhắn này được gửi ngoài khoảng thời gian cho phép. Tìm hiểu thêm về chính sách mới tại đây: https://developers.facebook.com/docs/messenger-platform/policy-overview","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at Redsand.Site.Services.Facebook.Sdk.PageClient.SendMessaging(Messaging messaging, String pageToken) in D:\\WORKSPACE\\ECRM-NOBI-R2\\NobiV2\\Services\\Facebook\\FacebookSdk\\PageApiClient.cs:line 29\n at Redsand.Site.Services.FacebookApiService.SendMessaging(Messaging messaging, String pageToken) in D:\\WORKSPACE\\ECRM-NOBI-R2\\NobiV2\\Services\\Facebook\\FacebookApiService.cs:line 240\n at Redsand.Site.Services.FbSender.SendAsync(FbCampaign campaign, FbMessage facebook, Boolean resend, ApplicationDbContext _db) in D:\\WORKSPACE\\ECRM-NOBI-R2\\NobiV2\\Services\\Facebook\\FbSender.cs:line 296\n at Redsand.Site.Services.FbSender.SendAsync(FbCampaign campaign, FbMessage facebook, Boolean resend, ApplicationDbContext _db) in D:\\WORKSPACE\\ECRM-NOBI-R2\\NobiV2\\Services\\Facebook\\FbSender.cs:line 296\n at Redsand.Site.Controllers.BackgroundController.SendFbCampaign(String camIds, Boolean debug) in D:\\WORKSPACE\\ECRM-NOBI-R2\\NobiV2\\Controllers\\BackgroundController.cs:line 778","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233088,"Source":"Redsand.Site","WatsonBuckets":null}
{}
{"data":{"exception":"Exception","message":"Không thể đăng nhập Mobifone","helpLink":null,"data":{},"source":"Redsand.Site","stackTrace":" at Mobifone3cSdk.Client.MobiFone3c.LoginAsync(String token) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Lib\\Mobifone3c\\Mobifone3c.cs:line 83\n at Redsand.Site.Services.MobifoneService.LoginAsync(String token) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Services\\Voip\\MobifoneService.cs:line 73\n at Redsand.Site.Api.ClientController.GetClientToken() in D:\\WORKSPACE\\ECRM-NOBI-R2\\Api\\Voip\\ClientController.cs:line 38\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":"Exception","message":"{\"code\":\"errors\",\"message\":\"Domain not Found\"}","helpLink":null,"data":{},"source":null,"stackTrace":null,"inner":{"exception":"Exception","message":"Không tìm thấy trang","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":"Fri, 03 Apr 2026 02:13:51 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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjI1IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvbmFtZSI6ImdpYW1kb2MyIiwiQXNwTmV0LklkZW50aXR5LlNlY3VyaXR5U3RhbXAiOiJJR0ZVNVhTUFJHR0c1WEVXTDdNS0JPSURYQktSSFFWVCIsInN1YiI6ImdpYW1kb2MyIiwianRpIjoiZDM4NGUwYzMtZWY0MC00NzlhLWE5ZWUtMGMxOTg3NTFjYmU2IiwiaWF0IjoxNzc1MDk2NzYxLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiIxLWdpYW0tZG9jIiwibmJmIjoxNzc1MDk2NzYxLCJleHAiOjE3NzUxODMxNjEsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.qGT7ikP2m8Q-zMsUi4L2h35FJSx32kq_2f8Cp1YtSPg","ContentType":"application/json","x-hour-offset":"7","BranchId":"4","Locale":"vi"},"baseURL":"https://bshoang.nobi.pro","paramsSerializer":{},"method":"get","url":"/api/voip/client/token"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjI1IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvbmFtZSI6ImdpYW1kb2MyIiwiQXNwTmV0LklkZW50aXR5LlNlY3VyaXR5U3RhbXAiOiJJR0ZVNVhTUFJHR0c1WEVXTDdNS0JPSURYQktSSFFWVCIsInN1YiI6ImdpYW1kb2MyIiwianRpIjoiZDM4NGUwYzMtZWY0MC00NzlhLWE5ZWUtMGMxOTg3NTFjYmU2IiwiaWF0IjoxNzc1MDk2NzYxLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiIxLWdpYW0tZG9jIiwibmJmIjoxNzc1MDk2NzYxLCJleHAiOjE3NzUxODMxNjEsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.qGT7ikP2m8Q-zMsUi4L2h35FJSx32kq_2f8Cp1YtSPg","ContentType":"application/json","x-hour-offset":"7","BranchId":"4","Locale":"vi"}
{}
{"data":{"exception":"InvalidOperationException","message":"The instance of entity type 'EcommerceOrder' cannot be tracked because another instance with the key value '{Id: 16091}' is already being tracked. When attaching existing entities, ensure that only one entity instance with a given key value is attached.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IdentityMap`1.ThrowIdentityConflict(InternalEntityEntry entry)\n at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IdentityMap`1.Add(TKey key, InternalEntityEntry entry, Boolean updateDuplicate)\n at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.StartTracking(InternalEntityEntry entry)\n at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry.SetEntityState(EntityState oldState, EntityState newState, Boolean acceptChanges, Boolean modifyProperties)\n at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityGraphAttacher.PaintAction(EntityEntryGraphNode`1 node)\n at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityEntryGraphIterator.TraverseGraph[TState](EntityEntryGraphNode`1 node, Func`2 handleNode)\n at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityGraphAttacher.AttachGraph(InternalEntityEntry rootEntry, EntityState targetState, EntityState storeGeneratedWithKeySetTargetState, Boolean forceStateWhenUnknownKey)\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.SetEntityState(InternalEntityEntry entry, EntityState entityState)\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.Attach(TEntity entity)\n at Redsand.Site.Services.OrderService.EcommerceUpdateInventoryAsync(EcommerceOrder order, String message, Boolean reInclude, ApplicationDbContext _db) in E:\\redsand\\BaseV2-Net6\\Services\\Order\\OrderService.cs:line 398\n at Redsand.Site.Api.OrdersEcommerceController.Update(Int32 id, EcommerceOrderBody model) in E:\\redsand\\BaseV2-Net6\\Api\\EcommerceOrder\\OrderController.cs:line 3382\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":null},"status":400,"statusText":"","headers":{"access-control-allow-origin":"*","cache-control":"no-store","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:13:46 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","Content-Type":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjI2IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvbmFtZSI6Im5nb2N0aHV5Nzg4IiwiQXNwTmV0LklkZW50aXR5LlNlY3VyaXR5U3RhbXAiOiJJT0RKR0wyVzZDRTNGSTZGNEFOQ0ZOWEZaVVpDNVJGMyIsInN1YiI6Im5nb2N0aHV5Nzg4IiwianRpIjoiNzg3ZTVlZTMtY2M0OS00NDUyLWEyMDQtZTEwNTQ2MDVjZGUwIiwiaWF0IjoxNzc0NDk0NDk4LCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiI5LW5oYW4tdmllbi1raW5oLWRvYW5oIiwibmJmIjoxNzc0NDk0NDk4LCJleHAiOjE3NzU3OTA0OTgsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.LHYXn6eMLtS0DYT3AIPZslQwGKe3wz9lCovakw6u2eY","ContentType":"application/json","x-hour-offset":"7","BranchId":"2","Locale":"vi"},"baseURL":"https://582-ptlim84a.dcso.pro","paramsSerializer":{},"method":"put","url":"/api/orders/16091","data":"{\"invoice\":{\"type\":1,\"customerId\":19693,\"isDiscountPrice\":false,\"relatedCustomerId\":null,\"id\":18867,\"code\":\"XB016077\",\"userId\":26,\"couponCode\":null,\"discount\":0,\"createDate\":\"2026-04-03T02:09:44.991854Z\",\"notes\":\"đã nhặt\",\"reason\":null,\"vat\":0,\"cod\":0,\"posOrderId\":null,\"posSyncDate\":null,\"warehouseId\":2,\"branchId\":2,\"depositAmount\":null,\"shippingFee\":17601,\"shippingFeeX\":17601,\"transferAmount\":null,\"total\":615000,\"insuranceValue\":\"615000.000\",\"status\":1,\"branchName\":\"Kho Lim\",\"isEmpty\":false,\"ecommerceDetails\":[{\"productId\":3244,\"key\":3244,\"isCombo\":false,\"product\":{\"id\":3244,\"name\":\"Đất xốp 36 màu to\",\"weight\":1,\"length\":null,\"width\":null,\"height\":null,\"isCombo\":false,\"url\":null,\"sku\":null,\"code\":\"PT401\",\"price\":23000,\"unit\":\"Vỉ\",\"inventoryBefore\":0,\"inventory\":-2457,\"productId\":4317,\"priceAvg\":18037,\"ecommerceFloorVariationId\":null},\"quantity\":20,\"weight\":1,\"length\":1,\"width\":1,\"height\":1,\"price\":22000,\"discount\":0,\"isDiscountPrice\":false,\"totalAmount\":440000,\"quantityX\":20},{\"productId\":3434,\"key\":3434,\"isCombo\":false,\"product\":{\"id\":3434,\"name\":\"Keo nến nhỏ (bó 100c)\",\"weight\":1,\"length\":null,\"width\":null,\"height\":null,\"isCombo\":false,\"url\":null,\"sku\":null,\"code\":\"PT272\",\"price\":80000,\"unit\":\"Bó\",\"inventoryBefore\":0,\"inventory\":-90,\"productId\":4444,\"priceAvg\":48076,\"ecommerceFloorVariationId\":null},\"quantity\":0.5,\"weight\":1,\"length\":1,\"width\":1,\"height\":1,\"price\":60000,\"discount\":0,\"isDiscountPrice\":false,\"totalAmount\":30000,\"quantityX\":0.5},{\"productId\":3145,\"key\":3145,\"isCombo\":false,\"product\":{\"id\":3145,\"name\":\"Bút chì K6 (12c)\",\"weight\":1,\"length\":null,\"width\":null,\"height\":null,\"isCombo\":false,\"url\":null,\"sku\":null,\"code\":\"PT506\",\"price\":19000,\"unit\":\"Hộp\",\"inventoryBefore\":0,\"inventory\":584,\"productId\":4220,\"priceAvg\":15468,\"ecommerceFloorVariationId\":null},\"quantity\":5,\"weight\":1,\"length\":1,\"width\":1,\"height\":1,\"price\":19000,\"discount\":0,\"isDiscountPrice\":false,\"totalAmount\":95000,\"quantityX\":5},{\"productId\":3020,\"key\":3020,\"isCombo\":false,\"product\":{\"id\":3020,\"name\":\"Ship\",\"weight\":1,\"length\":null,\"width\":null,\"height\":null,\"isCombo\":false,\"url\":null,\"sku\":null,\"code\":\"PT705\",\"price\":25000,\"unit\":\"Lần\",\"inventoryBefore\":0,\"inventory\":-658,\"productId\":4703,\"priceAvg\":0,\"ecommerceFloorVariationId\":null},\"quantity\":1,\"weight\":1,\"length\":1,\"width\":1,\"height\":1,\"price\":50000,\"discount\":0,\"isDiscountPrice\":false,\"totalAmount\":50000,\"quantityX\":1}],\"returnFee\":0,\"coupons\":[],\"details\":null},\"customer\":null,\"transporter\":\"ViettelPost\",\"id\":16091,\"createDate\":\"2026-04-03T02:09:45.004348Z\",\"campaignId\":null,\"campaignName\":null,\"code\":\"DH016077\",\"invoiceId\":18867,\"salerId\":26,\"shop\":null,\"status\":1,\"customerName\":\"Tuyền\",\"customerNotes\":\"\",\"customerPhoneNumber\":\"0949705872\",\"buyerPriceTotal\":1600000,\"customerAvatar\":null,\"customerPageScopeId\":\"\",\"deliveringNote\":null,\"totalAmount\":615000,\"discountTotal\":0,\"priceTotal\":1600000,\"country\":null,\"wardId\":\"9191331012\",\"provinceId\":\"91\",\"districtId\":\"91913\",\"shippingAddress\":\"Trường Tiểu học Phạm Văn Hớn, Ấp Cạn Ngọn A\",\"districtName\":\"Huyện U Minh Thượng\",\"provinceName\":\"Kiên Giang\",\"addressLevel4\":null,\"wardName\":\"Xã Thạnh Yên\",\"shippingStatus\":1,\"packageId\":null,\"totalVat\":0,\"transporterId\":11,\"transporterServiceId\":\"VSL9\",\"trackingCode\":null,\"sendTransporterDate\":null,\"expectedDeliveryTime\":null,\"customerReceivedDate\":null,\"isFreeShipping\":true,\"transportType\":0,\"weight\":26.5,\"length\":null,\"height\":null,\"width\":null,\"adId\":null,\"conversationId\":null,\"checkingPolicy\":1,\"orderFee\":{\"id\":16091,\"discountVoucher\":0,\"discountVoucherPlatform\":0,\"discountShopeeCoin\":0,\"discountWallet\":0,\"shippingFeeSeller\":0,\"shippingFeePlatform\":0,\"originalShippingFee\":0,\"priceExcel\":0,\"transactionFee\":0,\"affiliateCommission\":0,\"platformCommission\":0,\"previousRevenue\":0,\"settlementRevenue\":null,\"tikTokDiscountFee\":0,\"settlementAmount\":0,\"settlementInfo\":null,\"settlementInfoObj\":null,\"salePrice\":1544999,\"customerPrice\":1600000,\"customerPriceCod\":null},\"orderAddress\":{\"id\":16092,\"shippingAddress\":\"Trường Tiểu học Phạm Văn Hớn, Ấp Cạn Ngọn A\",\"provinceId\":\"91\",\"districtId\":\"91913\",\"wardId\":\"9191331012\",\"wardName\":\"Xã Thạnh Yên\",\"provinceName\":\"Kiên Giang\",\"districtName\":\"Huyện U Minh Thượng\"},\"orderExtra\":{\"id\":16091,\"userCrossCheckedId\":null,\"userCrossChecked\":null,\"userConfirmReturnedId\":null,\"userConfirmReturned\":null,\"cancelReason\":null,\"crossCheckedStatus\":null,\"currentWarehouseName\":\"KGG, HBKGUT, Bưu cục U Minh Thượng - KGG - Kiên Giang, 0971283438, 924601, XÃ THẠNH YÊN\",\"numberOfPackages\":null,\"isInfoFromChat\":false,\"unLockDate\":null,\"sendTransporterDate\":null,\"expectedDeliveryTime\":null,\"customerReceivedDate\":null,\"lastUpdateTime\":null,\"cancelTime\":null,\"confirmReturnedDate\":null,\"crossCheckedDate\":null,\"flags\":{},\"flagsStr\":\"{}\",\"sortLine\":null,\"weight\":26.5},\"type\":4,\"flags\":{\"isFood\":false,\"isFragile\":false,\"isSealBox\":false,\"noStack\":false,\"arranged\":false,\"bbseco\":false,\"partialDelivery\":false,\"orderServiceAdd\":null},\"transporterName\":\"ViettelPost - PT MỚI\",\"isCustomFee\":false,\"sourceName\":null,\"salerName\":\"Ngọc Thúy\",\"salerPhoneNumber\":\"0355528788\",\"customerBuy\":{\"address\":\", \",\"fullName\":\". Thúy\",\"phone\":\"0354379564\",\"location\":{\"provinceId\":null,\"districtId\":null,\"wardId\":null,\"wardName\":\"Xã Tân Thành\",\"provinceName\":\"Bình Phước\",\"districtName\":\"Thị xã Đồng Xoài\"}},\"tags\":[],\"couponIds\":[],\"orderAddressId\":16092,\"orderExtraId\":16091,\"orderFeeId\":16091}"},"request":{}}
{"Accept":"application/json","Content-Type":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjI2IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvbmFtZSI6Im5nb2N0aHV5Nzg4IiwiQXNwTmV0LklkZW50aXR5LlNlY3VyaXR5U3RhbXAiOiJJT0RKR0wyVzZDRTNGSTZGNEFOQ0ZOWEZaVVpDNVJGMyIsInN1YiI6Im5nb2N0aHV5Nzg4IiwianRpIjoiNzg3ZTVlZTMtY2M0OS00NDUyLWEyMDQtZTEwNTQ2MDVjZGUwIiwiaWF0IjoxNzc0NDk0NDk4LCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiI5LW5oYW4tdmllbi1raW5oLWRvYW5oIiwibmJmIjoxNzc0NDk0NDk4LCJleHAiOjE3NzU3OTA0OTgsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.LHYXn6eMLtS0DYT3AIPZslQwGKe3wz9lCovakw6u2eY","ContentType":"application/json","x-hour-offset":"7","BranchId":"2","Locale":"vi"}
"{\"invoice\":{\"type\":1,\"customerId\":19693,\"isDiscountPrice\":false,\"relatedCustomerId\":null,\"id\":18867,\"code\":\"XB016077\",\"userId\":26,\"couponCode\":null,\"discount\":0,\"createDate\":\"2026-04-03T02:09:44.991854Z\",\"notes\":\"đã nhặt\",\"reason\":null,\"vat\":0,\"cod\":0,\"posOrderId\":null,\"posSyncDate\":null,\"warehouseId\":2,\"branchId\":2,\"depositAmount\":null,\"shippingFee\":17601,\"shippingFeeX\":17601,\"transferAmount\":null,\"total\":615000,\"insuranceValue\":\"615000.000\",\"status\":1,\"branchName\":\"Kho Lim\",\"isEmpty\":false,\"ecommerceDetails\":[{\"productId\":3244,\"key\":3244,\"isCombo\":false,\"product\":{\"id\":3244,\"name\":\"Đất xốp 36 màu to\",\"weight\":1,\"length\":null,\"width\":null,\"height\":null,\"isCombo\":false,\"url\":null,\"sku\":null,\"code\":\"PT401\",\"price\":23000,\"unit\":\"Vỉ\",\"inventoryBefore\":0,\"inventory\":-2457,\"productId\":4317,\"priceAvg\":18037,\"ecommerceFloorVariationId\":null},\"quantity\":20,\"weight\":1,\"length\":1,\"width\":1,\"height\":1,\"price\":22000,\"discount\":0,\"isDiscountPrice\":false,\"totalAmount\":440000,\"quantityX\":20},{\"productId\":3434,\"key\":3434,\"isCombo\":false,\"product\":{\"id\":3434,\"name\":\"Keo nến nhỏ (bó 100c)\",\"weight\":1,\"length\":null,\"width\":null,\"height\":null,\"isCombo\":false,\"url\":null,\"sku\":null,\"code\":\"PT272\",\"price\":80000,\"unit\":\"Bó\",\"inventoryBefore\":0,\"inventory\":-90,\"productId\":4444,\"priceAvg\":48076,\"ecommerceFloorVariationId\":null},\"quantity\":0.5,\"weight\":1,\"length\":1,\"width\":1,\"height\":1,\"price\":60000,\"discount\":0,\"isDiscountPrice\":false,\"totalAmount\":30000,\"quantityX\":0.5},{\"productId\":3145,\"key\":3145,\"isCombo\":false,\"product\":{\"id\":3145,\"name\":\"Bút chì K6 (12c)\",\"weight\":1,\"length\":null,\"width\":null,\"height\":null,\"isCombo\":false,\"url\":null,\"sku\":null,\"code\":\"PT506\",\"price\":19000,\"unit\":\"Hộp\",\"inventoryBefore\":0,\"inventory\":584,\"productId\":4220,\"priceAvg\":15468,\"ecommerceFloorVariationId\":null},\"quantity\":5,\"weight\":1,\"length\":1,\"width\":1,\"height\":1,\"price\":19000,\"discount\":0,\"isDiscountPrice\":false,\"totalAmount\":95000,\"quantityX\":5},{\"productId\":3020,\"key\":3020,\"isCombo\":false,\"product\":{\"id\":3020,\"name\":\"Ship\",\"weight\":1,\"length\":null,\"width\":null,\"height\":null,\"isCombo\":false,\"url\":null,\"sku\":null,\"code\":\"PT705\",\"price\":25000,\"unit\":\"Lần\",\"inventoryBefore\":0,\"inventory\":-658,\"productId\":4703,\"priceAvg\":0,\"ecommerceFloorVariationId\":null},\"quantity\":1,\"weight\":1,\"length\":1,\"width\":1,\"height\":1,\"price\":50000,\"discount\":0,\"isDiscountPrice\":false,\"totalAmount\":50000,\"quantityX\":1}],\"returnFee\":0,\"coupons\":[],\"details\":null},\"customer\":null,\"transporter\":\"ViettelPost\",\"id\":16091,\"createDate\":\"2026-04-03T02:09:45.004348Z\",\"campaignId\":null,\"campaignName\":null,\"code\":\"DH016077\",\"invoiceId\":18867,\"salerId\":26,\"shop\":null,\"status\":1,\"customerName\":\"Tuyền\",\"customerNotes\":\"\",\"customerPhoneNumber\":\"0949705872\",\"buyerPriceTotal\":1600000,\"customerAvatar\":null,\"customerPageScopeId\":\"\",\"deliveringNote\":null,\"totalAmount\":615000,\"discountTotal\":0,\"priceTotal\":1600000,\"country\":null,\"wardId\":\"9191331012\",\"provinceId\":\"91\",\"districtId\":\"91913\",\"shippingAddress\":\"Trường Tiểu học Phạm Văn Hớn, Ấp Cạn Ngọn A\",\"districtName\":\"Huyện U Minh Thượng\",\"provinceName\":\"Kiên Giang\",\"addressLevel4\":null,\"wardName\":\"Xã Thạnh Yên\",\"shippingStatus\":1,\"packageId\":null,\"totalVat\":0,\"transporterId\":11,\"transporterServiceId\":\"VSL9\",\"trackingCode\":null,\"sendTransporterDate\":null,\"expectedDeliveryTime\":null,\"customerReceivedDate\":null,\"isFreeShipping\":true,\"transportType\":0,\"weight\":26.5,\"length\":null,\"height\":null,\"width\":null,\"adId\":null,\"conversationId\":null,\"checkingPolicy\":1,\"orderFee\":{\"id\":16091,\"discountVoucher\":0,\"discountVoucherPlatform\":0,\"discountShopeeCoin\":0,\"discountWallet\":0,\"shippingFeeSeller\":0,\"shippingFeePlatform\":0,\"originalShippingFee\":0,\"priceExcel\":0,\"transactionFee\":0,\"affiliateCommission\":0,\"platformCommission\":0,\"previousRevenue\":0,\"settlementRevenue\":null,\"tikTokDiscountFee\":0,\"settlementAmount\":0,\"settlementInfo\":null,\"settlementInfoObj\":null,\"salePrice\":1544999,\"customerPrice\":1600000,\"customerPriceCod\":null},\"orderAddress\":{\"id\":16092,\"shippingAddress\":\"Trường Tiểu học Phạm Văn Hớn, Ấp Cạn Ngọn A\",\"provinceId\":\"91\",\"districtId\":\"91913\",\"wardId\":\"9191331012\",\"wardName\":\"Xã Thạnh Yên\",\"provinceName\":\"Kiên Giang\",\"districtName\":\"Huyện U Minh Thượng\"},\"orderExtra\":{\"id\":16091,\"userCrossCheckedId\":null,\"userCrossChecked\":null,\"userConfirmReturnedId\":null,\"userConfirmReturned\":null,\"cancelReason\":null,\"crossCheckedStatus\":null,\"currentWarehouseName\":\"KGG, HBKGUT, Bưu cục U Minh Thượng - KGG - Kiên Giang, 0971283438, 924601, XÃ THẠNH YÊN\",\"numberOfPackages\":null,\"isInfoFromChat\":false,\"unLockDate\":null,\"sendTransporterDate\":null,\"expectedDeliveryTime\":null,\"customerReceivedDate\":null,\"lastUpdateTime\":null,\"cancelTime\":null,\"confirmReturnedDate\":null,\"crossCheckedDate\":null,\"flags\":{},\"flagsStr\":\"{}\",\"sortLine\":null,\"weight\":26.5},\"type\":4,\"flags\":{\"isFood\":false,\"isFragile\":false,\"isSealBox\":false,\"noStack\":false,\"arranged\":false,\"bbseco\":false,\"partialDelivery\":false,\"orderServiceAdd\":null},\"transporterName\":\"ViettelPost - PT MỚI\",\"isCustomFee\":false,\"sourceName\":null,\"salerName\":\"Ngọc Thúy\",\"salerPhoneNumber\":\"0355528788\",\"customerBuy\":{\"address\":\", \",\"fullName\":\". Thúy\",\"phone\":\"0354379564\",\"location\":{\"provinceId\":null,\"districtId\":null,\"wardId\":null,\"wardName\":\"Xã Tân Thành\",\"provinceName\":\"Bình Phước\",\"districtName\":\"Thị xã Đồng Xoài\"}},\"tags\":[],\"couponIds\":[],\"orderAddressId\":16092,\"orderExtraId\":16091,\"orderFeeId\":16091}"
{"ClassName":"System.Exception","Message":"(#551) Người này hiện không có mặt.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at Redsand.Site.Services.Facebook.Sdk.PageClient.SendMessaging(Messaging messaging, String pageToken) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Services\\Facebook\\FacebookSdk\\PageApiClient.cs:line 29\n at Redsand.Site.Services.FacebookApiService.SendMessaging(Messaging messaging, String pageToken) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Services\\Facebook\\FacebookApiService.cs:line 243\n at Redsand.Site.Services.FbSender.SendAsync(FbCampaign campaign, FbMessage facebook, Boolean resend, ApplicationDbContext _db) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Services\\Facebook\\FbSender.cs:line 308\n at Redsand.Site.Services.FbSender.SendAsync(FbCampaign campaign, FbMessage facebook, Boolean resend, ApplicationDbContext _db) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Services\\Facebook\\FbSender.cs:line 308\n at Redsand.Site.Controllers.BackgroundController.SendFbCampaign(String camIds, Boolean debug) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Controllers\\BackgroundController.cs:line 802","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233088,"Source":"Redsand.Site","WatsonBuckets":null}
{}
{"ClassName":"System.Exception","Message":"This Page access token belongs to a Page that is not accessible.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at Redsand.Site.Services.Facebook.Sdk.PageClient.SendMessaging(Messaging messaging, String pageToken) in E:\\redsand\\inven-check\\Services\\Facebook\\FacebookSdk\\PageApiClient.cs:line 28\n at Redsand.Site.Services.FacebookApiService.SendMessaging(Messaging messaging, String pageToken) in E:\\redsand\\inven-check\\Services\\Facebook\\FacebookApiService.cs:line 240\n at Redsand.Site.Services.FbSender.SendAsync(FbCampaign campaign, FbMessage facebook, Boolean resend, ApplicationDbContext _db) in E:\\redsand\\inven-check\\Services\\Facebook\\FbSender.cs:line 198\n at Redsand.Site.Services.FbSender.SendAsync(FbCampaign campaign, FbMessage facebook, Boolean resend, ApplicationDbContext _db) in E:\\redsand\\inven-check\\Services\\Facebook\\FbSender.cs:line 294\n at Redsand.Site.Controllers.BackgroundController.SendFbCampaign(String camIds, Boolean debug) in E:\\redsand\\inven-check\\Controllers\\BackgroundController.cs:line 778","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233088,"Source":"Redsand.Site","WatsonBuckets":null}
{}
{"data":{"exception":"InvalidOperationException","path":"/api/options","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"access-control-allow-origin":"*","cache-control":"no-cache,no-store","content-length":"9614","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:38 GMT","expires":"-1","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","Content-Type":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"method":"post","url":"/api/options","data":"{\"allowImport\":false}"},"request":{}}
{"Accept":"application/json","Content-Type":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
"{\"allowImport\":false}"
{"data":{"exception":"InvalidOperationException","path":"/api/users/inferior","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"cache-control":"no-cache,no-store","content-length":"9621","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:37 GMT","expires":"-1","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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"method":"get","url":"/api/users/inferior"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"data":{"exception":"InvalidOperationException","path":"/api/overview-report/density","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"cache-control":"no-cache,no-store","content-length":"9630","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:36 GMT","expires":"-1","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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"params":{"branchIds":[1],"fromDate":"2026-03-27T00:00:00+07:00","toDate":"2026-04-03T23:59:59+07:00","typeFilter":"createInvoice","condition":"byDate"},"signal":{},"method":"get","url":"api/overview-report/density"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"data":{"exception":"InvalidOperationException","path":"/api/overview-report/top-campaign","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"cache-control":"no-cache,no-store","content-length":"9635","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:35 GMT","expires":"-1","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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"params":{"branchIds":[1],"fromDate":"2026-03-27T00:00:00+07:00","toDate":"2026-04-03T23:59:59+07:00","typeFilter":"createTime","condition":"byDate","pagesize":5,"isOverview":true},"signal":{},"method":"get","url":"/api/overview-report/top-campaign"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"data":{"exception":"InvalidOperationException","path":"/api/overview-report/ads","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"cache-control":"no-cache,no-store","content-length":"9626","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:34 GMT","expires":"-1","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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"params":{"branchIds":[1],"fromDate":"2026-03-27T00:00:00+07:00","toDate":"2026-04-03T23:59:59+07:00","typeFilter":"createInvoice","condition":"byDate"},"signal":{},"method":"get","url":"/api/overview-report/ads"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"data":{"exception":"InvalidOperationException","path":"/api/overview-report/transport","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"cache-control":"no-cache,no-store","content-length":"9632","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:33 GMT","expires":"-1","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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"params":{"branchIds":[1],"fromDate":"2026-03-27T00:00:00+07:00","toDate":"2026-04-03T23:59:59+07:00","typeFilter":"createInvoice","condition":"byDate"},"signal":{},"method":"get","url":"/api/overview-report/transport"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"data":{"exception":"InvalidOperationException","path":"/api/overview-report/inventory","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"cache-control":"no-cache,no-store","content-length":"9632","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:32 GMT","expires":"-1","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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"params":{"branchIds":[1],"fromDate":"2026-03-27T00:00:00+07:00","toDate":"2026-04-03T23:59:59+07:00","typeFilter":"createInvoice","condition":"byDate","onlyInside":true},"signal":{},"method":"get","url":"/api/overview-report/inventory"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"data":{"exception":"InvalidOperationException","path":"/api/overview-report/reportSale","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"cache-control":"no-cache,no-store","content-length":"9633","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:31 GMT","expires":"-1","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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"params":{"branchIds":[1],"fromDate":"2026-03-27T00:00:00+07:00","toDate":"2026-04-03T23:59:59+07:00","typeFilter":"createInvoice","condition":"byDate"},"signal":{},"method":"get","url":"/api/overview-report/reportSale"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"data":{"exception":"InvalidOperationException","path":"/api/overview-report/order-report","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"cache-control":"no-cache,no-store","content-length":"9635","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:29 GMT","expires":"-1","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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"params":{"branchIds":[1],"fromDate":"2026-03-27T00:00:00+07:00","toDate":"2026-04-03T23:59:59+07:00","typeFilter":"createInvoice","condition":"byDate"},"signal":{},"method":"get","url":"/api/overview-report/order-report"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"data":{"exception":"InvalidOperationException","path":"/api/application/new","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"cache-control":"no-cache,no-store","content-length":"9622","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:28 GMT","expires":"-1","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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"method":"get","url":"api/application/new"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"data":{"exception":"InvalidOperationException","message":"The instance of entity type 'EcommerceOrder' cannot be tracked because another instance with the key value '{Id: 63639}' is already being tracked. When attaching existing entities, ensure that only one entity instance with a given key value is attached.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IdentityMap`1.ThrowIdentityConflict(InternalEntityEntry entry)\n at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IdentityMap`1.Add(TKey key, InternalEntityEntry entry, Boolean updateDuplicate)\n at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.StartTracking(InternalEntityEntry entry)\n at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry.SetEntityState(EntityState oldState, EntityState newState, Boolean acceptChanges, Boolean modifyProperties)\n at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityGraphAttacher.PaintAction(EntityEntryGraphNode`1 node)\n at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityEntryGraphIterator.TraverseGraph[TState](EntityEntryGraphNode`1 node, Func`2 handleNode)\n at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityGraphAttacher.AttachGraph(InternalEntityEntry rootEntry, EntityState targetState, EntityState storeGeneratedWithKeySetTargetState, Boolean forceStateWhenUnknownKey)\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.SetEntityState(InternalEntityEntry entry, EntityState entityState)\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.Attach(TEntity entity)\n at Redsand.Site.Services.OrderService.EcommerceUpdateInventoryAsync(EcommerceOrder order, String message, Boolean reInclude, ApplicationDbContext _db) in E:\\redsand\\BaseV2-Net6\\Services\\Order\\OrderService.cs:line 398\n at Redsand.Site.Api.OrdersEcommerceController.Update(Int32 id, EcommerceOrderBody model) in E:\\redsand\\BaseV2-Net6\\Api\\EcommerceOrder\\OrderController.cs:line 3382\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":null},"status":400,"statusText":"","headers":{"access-control-allow-origin":"*","cache-control":"no-store","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:28 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","Content-Type":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjI0IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvbmFtZSI6InRudGxhbmFuaCIsIkFzcE5ldC5JZGVudGl0eS5TZWN1cml0eVN0YW1wIjoiNjRZSFhOQUlFN0Y3TkROQzNMTFZSWU1VREpTNDU1TjUiLCJzdWIiOiJ0bnRsYW5hbmgiLCJqdGkiOiI1ZmE5MzFmNS0yY2EyLTQzYzYtOTZlZC1hODFlMTcxMWI5YWMiLCJpYXQiOjE3NzUxODIwNjIsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IjMtbmhhbi12aWVuLXRlbGVzYWxlcyIsIm5iZiI6MTc3NTE4MjA2MiwiZXhwIjoxNzc1MjY4NDYyLCJpc3MiOiJSUyIsImF1ZCI6IlJTIn0.eKrtWrB7rvJhmGuWDYEMft5tzyKAVhM8vjZqQT8ohMk","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://thaininhtra.dcso.pro","paramsSerializer":{},"method":"put","url":"/api/orders/63639","data":"{\"invoice\":{\"type\":1,\"customerId\":99262,\"isDiscountPrice\":true,\"relatedCustomerId\":null,\"id\":65219,\"code\":\"XB063255\",\"userId\":24,\"couponCode\":null,\"discount\":100000,\"createDate\":\"2026-04-03T02:06:42.746512Z\",\"notes\":null,\"reason\":null,\"vat\":0,\"cod\":0,\"posOrderId\":null,\"posSyncDate\":null,\"warehouseId\":1,\"branchId\":1,\"depositAmount\":0,\"shippingFee\":36000,\"shippingFeeX\":36000,\"transferAmount\":0,\"total\":700000,\"insuranceValue\":800000,\"status\":1,\"branchName\":\"Thái Ninh Trà\",\"isEmpty\":false,\"ecommerceDetails\":[{\"id\":105422,\"productId\":149,\"nProductId\":53,\"price\":200000,\"quantity\":4,\"discount\":0,\"isDiscountPrice\":true,\"notes\":null,\"inventory\":-873,\"weight\":500,\"isCombo\":false,\"product\":{\"id\":149,\"sku\":\"bupnon500g\",\"unit\":\"hộp\",\"name\":\"Trà búp nõn gói 500g\",\"code\":\"bupnon500g\",\"weight\":500,\"length\":null,\"width\":null,\"height\":null,\"primaryImage\":{\"thumbnail\":\"/uploads/thaininhtra/product/img_2121-min_200x200.jpg\",\"url\":\"/uploads/thaininhtra/product/img_2121-min.jpg\"},\"inventories\":[{\"warehouseId\":1,\"inventory\":-873}],\"metas\":[],\"model_id\":null,\"item_id\":null},\"length\":null,\"width\":null,\"height\":null,\"totalAmount\":800000,\"quantityX\":4},{\"id\":105423,\"productId\":214,\"nProductId\":null,\"price\":50000,\"quantity\":2,\"discount\":100000,\"isDiscountPrice\":true,\"notes\":null,\"inventory\":-297,\"weight\":100,\"isCombo\":false,\"product\":{\"id\":214,\"sku\":null,\"unit\":\"Chiếc\",\"name\":\"100g Trà Búp Đặc Sản Tặng\",\"code\":\"TBDS_KM\",\"weight\":100,\"length\":null,\"width\":null,\"height\":null,\"primaryImage\":null,\"inventories\":[{\"warehouseId\":1,\"inventory\":-297}],\"metas\":[],\"model_id\":null,\"item_id\":null},\"length\":null,\"width\":null,\"height\":null,\"totalAmount\":0,\"quantityX\":2}],\"returnFee\":0,\"coupons\":[],\"details\":null},\"customer\":null,\"transporter\":null,\"id\":63639,\"createDate\":\"2026-04-03T02:06:42.773066Z\",\"campaignId\":null,\"campaignName\":null,\"code\":\"DH060690\",\"invoiceId\":65219,\"salerId\":24,\"shop\":null,\"status\":22,\"customerName\":\"Nguyễn Chí Từ \",\"customerNotes\":null,\"customerPhoneNumber\":\"0707795399\",\"buyerPriceTotal\":700000,\"customerAvatar\":null,\"customerPageScopeId\":\"\",\"deliveringNote\":null,\"totalAmount\":700000,\"discountTotal\":200000,\"priceTotal\":900000,\"country\":null,\"wardId\":\"7573126053\",\"provinceId\":\"75\",\"districtId\":\"75731\",\"shippingAddress\":\"K4/17H KP4p.\",\"districtName\":\"Thành phố Biên Hòa\",\"provinceName\":\"Đồng Nai\",\"addressLevel4\":null,\"wardName\":\"Phường Bửu Hòa\",\"shippingStatus\":1,\"packageId\":null,\"totalVat\":0,\"transporterId\":null,\"transporterServiceId\":null,\"trackingCode\":null,\"sendTransporterDate\":null,\"expectedDeliveryTime\":null,\"customerReceivedDate\":null,\"isFreeShipping\":true,\"transportType\":0,\"weight\":1000,\"length\":null,\"height\":null,\"width\":null,\"adId\":null,\"conversationId\":null,\"checkingPolicy\":1,\"orderFee\":{\"id\":63145,\"discountVoucher\":0,\"discountVoucherPlatform\":0,\"discountShopeeCoin\":0,\"discountWallet\":0,\"shippingFeeSeller\":0,\"shippingFeePlatform\":0,\"originalShippingFee\":0,\"priceExcel\":0,\"transactionFee\":0,\"affiliateCommission\":0,\"platformCommission\":0,\"previousRevenue\":0,\"settlementRevenue\":null,\"tikTokDiscountFee\":0,\"settlementAmount\":0,\"settlementInfo\":null,\"settlementInfoObj\":null,\"salePrice\":664000,\"customerPrice\":700000,\"customerPriceCod\":null},\"orderAddress\":{\"id\":63145,\"shippingAddress\":\"K4/17H KP4p.\",\"provinceId\":\"75\",\"districtId\":\"75731\",\"wardId\":\"7573126053\",\"wardName\":\"Phường Bửu Hòa\",\"provinceName\":\"Đồng Nai\",\"districtName\":\"Thành phố Biên Hòa\"},\"orderExtra\":{\"id\":63145,\"userCrossCheckedId\":null,\"userCrossChecked\":null,\"userConfirmReturnedId\":null,\"userConfirmReturned\":null,\"cancelReason\":null,\"crossCheckedStatus\":null,\"currentWarehouseName\":null,\"numberOfPackages\":null,\"isInfoFromChat\":false,\"unLockDate\":null,\"sendTransporterDate\":null,\"expectedDeliveryTime\":null,\"customerReceivedDate\":null,\"lastUpdateTime\":null,\"cancelTime\":null,\"confirmReturnedDate\":null,\"crossCheckedDate\":null,\"flags\":{},\"flagsStr\":\"{}\",\"sortLine\":null,\"weight\":1000,\"length\":null,\"width\":null,\"height\":null},\"type\":4,\"flags\":{\"isFood\":false,\"isFragile\":false,\"isSealBox\":false,\"noStack\":false,\"arranged\":false,\"bbseco\":false,\"partialDelivery\":false,\"orderServiceAdd\":null},\"transporterName\":null,\"isCustomFee\":false,\"sourceName\":null,\"salerName\":\"Tele Lan Anh\",\"salerPhoneNumber\":null,\"customerBuy\":{\"address\":\"K4/17H KP4p.\",\"fullName\":\"Nguyễn Chí Từ \",\"phone\":\"0707795399\",\"location\":{\"provinceId\":null,\"districtId\":null,\"wardId\":null,\"wardName\":\"Phường Bửu Hòa\",\"provinceName\":\"Đồng Nai\",\"districtName\":\"Thành phố Biên Hòa\"}},\"tags\":[],\"couponIds\":[],\"orderAddressId\":63145,\"orderExtraId\":63145,\"orderFeeId\":63145}"},"request":{}}
{"Accept":"application/json","Content-Type":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjI0IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvbmFtZSI6InRudGxhbmFuaCIsIkFzcE5ldC5JZGVudGl0eS5TZWN1cml0eVN0YW1wIjoiNjRZSFhOQUlFN0Y3TkROQzNMTFZSWU1VREpTNDU1TjUiLCJzdWIiOiJ0bnRsYW5hbmgiLCJqdGkiOiI1ZmE5MzFmNS0yY2EyLTQzYzYtOTZlZC1hODFlMTcxMWI5YWMiLCJpYXQiOjE3NzUxODIwNjIsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IjMtbmhhbi12aWVuLXRlbGVzYWxlcyIsIm5iZiI6MTc3NTE4MjA2MiwiZXhwIjoxNzc1MjY4NDYyLCJpc3MiOiJSUyIsImF1ZCI6IlJTIn0.eKrtWrB7rvJhmGuWDYEMft5tzyKAVhM8vjZqQT8ohMk","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
"{\"invoice\":{\"type\":1,\"customerId\":99262,\"isDiscountPrice\":true,\"relatedCustomerId\":null,\"id\":65219,\"code\":\"XB063255\",\"userId\":24,\"couponCode\":null,\"discount\":100000,\"createDate\":\"2026-04-03T02:06:42.746512Z\",\"notes\":null,\"reason\":null,\"vat\":0,\"cod\":0,\"posOrderId\":null,\"posSyncDate\":null,\"warehouseId\":1,\"branchId\":1,\"depositAmount\":0,\"shippingFee\":36000,\"shippingFeeX\":36000,\"transferAmount\":0,\"total\":700000,\"insuranceValue\":800000,\"status\":1,\"branchName\":\"Thái Ninh Trà\",\"isEmpty\":false,\"ecommerceDetails\":[{\"id\":105422,\"productId\":149,\"nProductId\":53,\"price\":200000,\"quantity\":4,\"discount\":0,\"isDiscountPrice\":true,\"notes\":null,\"inventory\":-873,\"weight\":500,\"isCombo\":false,\"product\":{\"id\":149,\"sku\":\"bupnon500g\",\"unit\":\"hộp\",\"name\":\"Trà búp nõn gói 500g\",\"code\":\"bupnon500g\",\"weight\":500,\"length\":null,\"width\":null,\"height\":null,\"primaryImage\":{\"thumbnail\":\"/uploads/thaininhtra/product/img_2121-min_200x200.jpg\",\"url\":\"/uploads/thaininhtra/product/img_2121-min.jpg\"},\"inventories\":[{\"warehouseId\":1,\"inventory\":-873}],\"metas\":[],\"model_id\":null,\"item_id\":null},\"length\":null,\"width\":null,\"height\":null,\"totalAmount\":800000,\"quantityX\":4},{\"id\":105423,\"productId\":214,\"nProductId\":null,\"price\":50000,\"quantity\":2,\"discount\":100000,\"isDiscountPrice\":true,\"notes\":null,\"inventory\":-297,\"weight\":100,\"isCombo\":false,\"product\":{\"id\":214,\"sku\":null,\"unit\":\"Chiếc\",\"name\":\"100g Trà Búp Đặc Sản Tặng\",\"code\":\"TBDS_KM\",\"weight\":100,\"length\":null,\"width\":null,\"height\":null,\"primaryImage\":null,\"inventories\":[{\"warehouseId\":1,\"inventory\":-297}],\"metas\":[],\"model_id\":null,\"item_id\":null},\"length\":null,\"width\":null,\"height\":null,\"totalAmount\":0,\"quantityX\":2}],\"returnFee\":0,\"coupons\":[],\"details\":null},\"customer\":null,\"transporter\":null,\"id\":63639,\"createDate\":\"2026-04-03T02:06:42.773066Z\",\"campaignId\":null,\"campaignName\":null,\"code\":\"DH060690\",\"invoiceId\":65219,\"salerId\":24,\"shop\":null,\"status\":22,\"customerName\":\"Nguyễn Chí Từ \",\"customerNotes\":null,\"customerPhoneNumber\":\"0707795399\",\"buyerPriceTotal\":700000,\"customerAvatar\":null,\"customerPageScopeId\":\"\",\"deliveringNote\":null,\"totalAmount\":700000,\"discountTotal\":200000,\"priceTotal\":900000,\"country\":null,\"wardId\":\"7573126053\",\"provinceId\":\"75\",\"districtId\":\"75731\",\"shippingAddress\":\"K4/17H KP4p.\",\"districtName\":\"Thành phố Biên Hòa\",\"provinceName\":\"Đồng Nai\",\"addressLevel4\":null,\"wardName\":\"Phường Bửu Hòa\",\"shippingStatus\":1,\"packageId\":null,\"totalVat\":0,\"transporterId\":null,\"transporterServiceId\":null,\"trackingCode\":null,\"sendTransporterDate\":null,\"expectedDeliveryTime\":null,\"customerReceivedDate\":null,\"isFreeShipping\":true,\"transportType\":0,\"weight\":1000,\"length\":null,\"height\":null,\"width\":null,\"adId\":null,\"conversationId\":null,\"checkingPolicy\":1,\"orderFee\":{\"id\":63145,\"discountVoucher\":0,\"discountVoucherPlatform\":0,\"discountShopeeCoin\":0,\"discountWallet\":0,\"shippingFeeSeller\":0,\"shippingFeePlatform\":0,\"originalShippingFee\":0,\"priceExcel\":0,\"transactionFee\":0,\"affiliateCommission\":0,\"platformCommission\":0,\"previousRevenue\":0,\"settlementRevenue\":null,\"tikTokDiscountFee\":0,\"settlementAmount\":0,\"settlementInfo\":null,\"settlementInfoObj\":null,\"salePrice\":664000,\"customerPrice\":700000,\"customerPriceCod\":null},\"orderAddress\":{\"id\":63145,\"shippingAddress\":\"K4/17H KP4p.\",\"provinceId\":\"75\",\"districtId\":\"75731\",\"wardId\":\"7573126053\",\"wardName\":\"Phường Bửu Hòa\",\"provinceName\":\"Đồng Nai\",\"districtName\":\"Thành phố Biên Hòa\"},\"orderExtra\":{\"id\":63145,\"userCrossCheckedId\":null,\"userCrossChecked\":null,\"userConfirmReturnedId\":null,\"userConfirmReturned\":null,\"cancelReason\":null,\"crossCheckedStatus\":null,\"currentWarehouseName\":null,\"numberOfPackages\":null,\"isInfoFromChat\":false,\"unLockDate\":null,\"sendTransporterDate\":null,\"expectedDeliveryTime\":null,\"customerReceivedDate\":null,\"lastUpdateTime\":null,\"cancelTime\":null,\"confirmReturnedDate\":null,\"crossCheckedDate\":null,\"flags\":{},\"flagsStr\":\"{}\",\"sortLine\":null,\"weight\":1000,\"length\":null,\"width\":null,\"height\":null},\"type\":4,\"flags\":{\"isFood\":false,\"isFragile\":false,\"isSealBox\":false,\"noStack\":false,\"arranged\":false,\"bbseco\":false,\"partialDelivery\":false,\"orderServiceAdd\":null},\"transporterName\":null,\"isCustomFee\":false,\"sourceName\":null,\"salerName\":\"Tele Lan Anh\",\"salerPhoneNumber\":null,\"customerBuy\":{\"address\":\"K4/17H KP4p.\",\"fullName\":\"Nguyễn Chí Từ \",\"phone\":\"0707795399\",\"location\":{\"provinceId\":null,\"districtId\":null,\"wardId\":null,\"wardName\":\"Phường Bửu Hòa\",\"provinceName\":\"Đồng Nai\",\"districtName\":\"Thành phố Biên Hòa\"}},\"tags\":[],\"couponIds\":[],\"orderAddressId\":63145,\"orderExtraId\":63145,\"orderFeeId\":63145}"
{"data":{"exception":"InvalidOperationException","path":"/api/task-manager","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"cache-control":"no-cache,no-store","content-length":"9619","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:27 GMT","expires":"-1","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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"params":{"offset":0},"method":"get","url":"api/task-manager"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"data":{"exception":"InvalidOperationException","path":"/api/task-manager/count","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"cache-control":"no-cache,no-store","content-length":"9625","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:26 GMT","expires":"-1","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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"method":"get","url":"api/task-manager/count"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"data":{"exception":"ArgumentException","message":"IDX10703: Cannot create a 'Microsoft.IdentityModel.Tokens.SymmetricSecurityKey', key length is zero.","helpLink":null,"data":{},"source":"Microsoft.IdentityModel.Tokens","stackTrace":" at Microsoft.IdentityModel.Tokens.SymmetricSecurityKey..ctor(Byte[] key)\n at Mobifone3cSdk.Client.MobiFone3c.GenToken(String agentId) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Lib\\Mobifone3c\\Mobifone3c.cs:line 56\n at Redsand.Site.Services.MobifoneService.GetToken(String agentId) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Services\\Voip\\MobifoneService.cs:line 67\n at Redsand.Site.Api.ClientController.GetClientToken() in D:\\WORKSPACE\\ECRM-NOBI-R2\\Api\\Voip\\ClientController.cs:line 31\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()\n--- End of stack trace from previous location ---\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":null},"status":400,"statusText":"","headers":{"cache-control":"no-store","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:25 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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjQzOSIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL25hbWUiOiJuZ29jbHQxIiwiQXNwTmV0LklkZW50aXR5LlNlY3VyaXR5U3RhbXAiOiJFU081MjdVN1lRUFlOSjJKU1hDNUg3RUVGVUpNQVBOUiIsInN1YiI6Im5nb2NsdDEiLCJqdGkiOiIxYzE0ZGU5OC1lZTNiLTQwMjctOTZmOS1hOThkNmIwODg2YzIiLCJpYXQiOjE3NzUxODIzNDUsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IjM3OS10ZWxlc2FsZSIsIm5iZiI6MTc3NTE4MjM0NSwiZXhwIjoxNzc1MjY4NzQ1LCJpc3MiOiJSUyIsImF1ZCI6IlJTIn0.Cj5rihv6zZYRHVzDBqseypiMZTKhXL-G7X0_TY3d8OM","ContentType":"application/json","x-hour-offset":"7","BranchId":"26","Locale":"vi"},"baseURL":"https://thammylavian.dcso.pro","paramsSerializer":{},"method":"get","url":"/api/voip/client/token"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjQzOSIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL25hbWUiOiJuZ29jbHQxIiwiQXNwTmV0LklkZW50aXR5LlNlY3VyaXR5U3RhbXAiOiJFU081MjdVN1lRUFlOSjJKU1hDNUg3RUVGVUpNQVBOUiIsInN1YiI6Im5nb2NsdDEiLCJqdGkiOiIxYzE0ZGU5OC1lZTNiLTQwMjctOTZmOS1hOThkNmIwODg2YzIiLCJpYXQiOjE3NzUxODIzNDUsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IjM3OS10ZWxlc2FsZSIsIm5iZiI6MTc3NTE4MjM0NSwiZXhwIjoxNzc1MjY4NzQ1LCJpc3MiOiJSUyIsImF1ZCI6IlJTIn0.Cj5rihv6zZYRHVzDBqseypiMZTKhXL-G7X0_TY3d8OM","ContentType":"application/json","x-hour-offset":"7","BranchId":"26","Locale":"vi"}
{}
{"data":{"exception":"InvalidOperationException","path":"/api/customViews","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"cache-control":"no-cache,no-store","content-length":"9618","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:23 GMT","expires":"-1","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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"method":"get","url":"/api/customViews"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"data":{"exception":"InvalidOperationException","path":"/api/ecom/account/shopcache","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"cache-control":"no-cache,no-store","content-length":"9629","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:22 GMT","expires":"-1","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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"method":"get","url":"/api/ecom/account/shopcache"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"data":{"exception":"InvalidOperationException","path":"/api/product-categories/type","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"cache-control":"no-cache,no-store","content-length":"9630","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:21 GMT","expires":"-1","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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"method":"get","url":"api/product-categories/type"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"data":{"exception":"InvalidOperationException","path":"/api/loyalty","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"cache-control":"no-cache,no-store","content-length":"9614","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:20 GMT","expires":"-1","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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"method":"get","url":"/api/loyalty"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"data":{"exception":"InvalidOperationException","path":"/api/departments","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"cache-control":"no-cache,no-store","content-length":"9618","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:19 GMT","expires":"-1","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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"params":{"currentBranchOnly":true},"method":"get","url":"/api/departments"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"data":{"exception":"InvalidOperationException","path":"/api/transporters","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"cache-control":"no-cache,no-store","content-length":"9619","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:17 GMT","expires":"-1","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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"method":"get","url":"/api/transporters"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"data":{"exception":"InvalidOperationException","path":"/api/warehouse","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"cache-control":"no-cache,no-store","content-length":"9616","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:16 GMT","expires":"-1","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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"method":"get","url":"/api/warehouse"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"name":"TypeError","message":"Failed to fetch dynamically imported module: https://thaininhtra.dcso.pro/assets/FilePlayer-b5A8FwOc.js","stack":"TypeError: Failed to fetch dynamically imported module: https://thaininhtra.dcso.pro/assets/FilePlayer-b5A8FwOc.js"}
{"ClassName":"System.Exception","Message":"(#10) Tin nhắn này được gửi ngoài khoảng thời gian cho phép. Tìm hiểu thêm về chính sách mới tại đây: https://developers.facebook.com/docs/messenger-platform/policy-overview","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at Redsand.Site.Services.Facebook.Sdk.PageClient.SendMessaging(Messaging messaging, String pageToken) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Services\\Facebook\\FacebookSdk\\PageApiClient.cs:line 29\n at Redsand.Site.Services.FacebookApiService.SendMessaging(Messaging messaging, String pageToken) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Services\\Facebook\\FacebookApiService.cs:line 243\n at Redsand.Site.Services.FbSender.SendAsync(FbCampaign campaign, FbMessage facebook, Boolean resend, ApplicationDbContext _db) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Services\\Facebook\\FbSender.cs:line 308\n at Redsand.Site.Services.FbSender.SendAsync(FbCampaign campaign, FbMessage facebook, Boolean resend, ApplicationDbContext _db) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Services\\Facebook\\FbSender.cs:line 308\n at Redsand.Site.Controllers.BackgroundController.SendFbCampaign(String camIds, Boolean debug) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Controllers\\BackgroundController.cs:line 802","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233088,"Source":"Redsand.Site","WatsonBuckets":null}
{}
{"data":{"exception":"InvalidOperationException","path":"/api/tags","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"cache-control":"no-cache,no-store","content-length":"9611","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:15 GMT","expires":"-1","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","Cache-Control":"no-cache","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"method":"get","url":"/api/tags"},"request":{}}
{"Accept":"application/json","Cache-Control":"no-cache","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"data":{"exception":"InvalidOperationException","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.AsNoTracking[TEntity](IQueryable`1 source)\n at Redsand.Site.Api.ViewAndField.CustomFieldsController.GetList(String search) in D:\\Nobi\\NobiV2\\Api\\ViewAndField\\CustomFieldsController.cs:line 71\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()\n--- End of stack trace from previous location ---\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":null},"status":400,"statusText":"","headers":{"cache-control":"no-store","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:15 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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"method":"get","url":"/api/fields"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"data":{"exception":"InvalidOperationException","path":"/api/notifications/checkNew","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"cache-control":"no-cache,no-store","content-length":"9629","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:14 GMT","expires":"-1","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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"method":"get","url":"api/notifications/checkNew"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"data":{"exception":"InvalidOperationException","path":"/api/users","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"cache-control":"no-cache,no-store","content-length":"9612","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:12 GMT","expires":"-1","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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"params":{"noPagination":true,"forSelect":true},"method":"get","url":"/api/users"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"data":{"exception":"Exception","message":"Không thể đăng nhập Mobifone","helpLink":null,"data":{},"source":"Redsand.Site","stackTrace":" at Mobifone3cSdk.Client.MobiFone3c.LoginAsync(String token) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Lib\\Mobifone3c\\Mobifone3c.cs:line 83\n at Redsand.Site.Services.MobifoneService.LoginAsync(String token) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Services\\Voip\\MobifoneService.cs:line 73\n at Redsand.Site.Api.ClientController.GetClientToken() in D:\\WORKSPACE\\ECRM-NOBI-R2\\Api\\Voip\\ClientController.cs:line 38\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":"Exception","message":"{\"code\":\"errors\",\"message\":\"Domain not Found\"}","helpLink":null,"data":{},"source":null,"stackTrace":null,"inner":{"exception":"Exception","message":"Không tìm thấy trang","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":"Fri, 03 Apr 2026 02:12:11 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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjMxIiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvbmFtZSI6IkhOMVRIVVRSQU5HIiwiQXNwTmV0LklkZW50aXR5LlNlY3VyaXR5U3RhbXAiOiJEUU5HWEo2V1dQSlhVWlFMVVozV1haR0NRWDM2NkNCNCIsInN1YiI6IkhOMVRIVVRSQU5HIiwianRpIjoiMThiOTQ4ODUtYTIxNy00Y2EyLTk5ODktYzMzNzg1NzY5ODZiIiwiaWF0IjoxNzc0MzE3NTQ3LCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiIzNi10ZWxlc2FsZXMtMSIsIm5iZiI6MTc3NDMxNzU0NywiZXhwIjoxNzc2OTA5NTQ3LCJpc3MiOiJSUyIsImF1ZCI6IlJTIn0.tFyAmcu4_yQpaLJjQC-gvXxcsjTOwWMnZVZ4htNozeo","ContentType":"application/json","x-hour-offset":"7","BranchId":"6","Locale":"vi"},"baseURL":"https://uni.nobi.pro","paramsSerializer":{},"method":"get","url":"/api/voip/client/token"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjMxIiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvbmFtZSI6IkhOMVRIVVRSQU5HIiwiQXNwTmV0LklkZW50aXR5LlNlY3VyaXR5U3RhbXAiOiJEUU5HWEo2V1dQSlhVWlFMVVozV1haR0NRWDM2NkNCNCIsInN1YiI6IkhOMVRIVVRSQU5HIiwianRpIjoiMThiOTQ4ODUtYTIxNy00Y2EyLTk5ODktYzMzNzg1NzY5ODZiIiwiaWF0IjoxNzc0MzE3NTQ3LCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiIzNi10ZWxlc2FsZXMtMSIsIm5iZiI6MTc3NDMxNzU0NywiZXhwIjoxNzc2OTA5NTQ3LCJpc3MiOiJSUyIsImF1ZCI6IlJTIn0.tFyAmcu4_yQpaLJjQC-gvXxcsjTOwWMnZVZ4htNozeo","ContentType":"application/json","x-hour-offset":"7","BranchId":"6","Locale":"vi"}
{}
{"data":{"exception":"InvalidOperationException","path":"/api/account","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"cache-control":"no-cache,no-store","content-length":"9614","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:11 GMT","expires":"-1","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","Cache-Control":"no-cache","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"method":"get","url":"/api/account"},"request":{}}
{"Accept":"application/json","Cache-Control":"no-cache","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"data":{"exception":"InvalidOperationException","path":"/api/branches","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"cache-control":"no-cache,no-store","content-length":"9615","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:10 GMT","expires":"-1","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","Cache-Control":"no-cache","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"method":"get","url":"/api/branches"},"request":{}}
{"Accept":"application/json","Cache-Control":"no-cache","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"ClassName":"System.Exception","Message":"(#10) Tin nhắn này được gửi ngoài khoảng thời gian cho phép. Tìm hiểu thêm về chính sách mới tại đây: https://developers.facebook.com/docs/messenger-platform/policy-overview","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at Redsand.Site.Services.Facebook.Sdk.PageClient.SendMessaging(Messaging messaging, String pageToken) in D:\\WORKSPACE\\ECRM-NOBI-R2\\NobiV2\\Services\\Facebook\\FacebookSdk\\PageApiClient.cs:line 29\n at Redsand.Site.Services.FacebookApiService.SendMessaging(Messaging messaging, String pageToken) in D:\\WORKSPACE\\ECRM-NOBI-R2\\NobiV2\\Services\\Facebook\\FacebookApiService.cs:line 240\n at Redsand.Site.Services.FbSender.SendAsync(FbCampaign campaign, FbMessage facebook, Boolean resend, ApplicationDbContext _db) in D:\\WORKSPACE\\ECRM-NOBI-R2\\NobiV2\\Services\\Facebook\\FbSender.cs:line 296\n at Redsand.Site.Services.FbSender.SendAsync(FbCampaign campaign, FbMessage facebook, Boolean resend, ApplicationDbContext _db) in D:\\WORKSPACE\\ECRM-NOBI-R2\\NobiV2\\Services\\Facebook\\FbSender.cs:line 296\n at Redsand.Site.Controllers.BackgroundController.SendFbCampaign(String camIds, Boolean debug) in D:\\WORKSPACE\\ECRM-NOBI-R2\\NobiV2\\Controllers\\BackgroundController.cs:line 778","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233088,"Source":"Redsand.Site","WatsonBuckets":null}
{}
{"data":{"exception":"InvalidOperationException","path":"/api/options","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"cache-control":"no-cache,no-store","content-length":"9614","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:08 GMT","expires":"-1","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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"method":"get","url":"/api/options"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"data":{"exception":"InvalidOperationException","path":"/api/transporters/allTransportInfo","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"cache-control":"no-cache,no-store","content-length":"9636","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:07 GMT","expires":"-1","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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"method":"get","url":"/api/transporters/allTransportInfo"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"data":{"exception":"InvalidOperationException","path":"/api/voip/number","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"cache-control":"no-cache,no-store","content-length":"9618","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:05 GMT","expires":"-1","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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"method":"get","url":"api/voip/number"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"ClassName":"System.Exception","Message":"(#10) Tin nhắn này được gửi ngoài khoảng thời gian cho phép. Tìm hiểu thêm về chính sách mới tại đây: https://developers.facebook.com/docs/messenger-platform/policy-overview","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at Redsand.Site.Services.Facebook.Sdk.PageClient.SendMessaging(Messaging messaging, String pageToken) in D:\\WORKSPACE\\ECRM-NOBI-R2\\NobiV2\\Services\\Facebook\\FacebookSdk\\PageApiClient.cs:line 29\n at Redsand.Site.Services.FacebookApiService.SendMessaging(Messaging messaging, String pageToken) in D:\\WORKSPACE\\ECRM-NOBI-R2\\NobiV2\\Services\\Facebook\\FacebookApiService.cs:line 240\n at Redsand.Site.Services.FbSender.SendAsync(FbCampaign campaign, FbMessage facebook, Boolean resend, ApplicationDbContext _db) in D:\\WORKSPACE\\ECRM-NOBI-R2\\NobiV2\\Services\\Facebook\\FbSender.cs:line 296\n at Redsand.Site.Services.FbSender.SendAsync(FbCampaign campaign, FbMessage facebook, Boolean resend, ApplicationDbContext _db) in D:\\WORKSPACE\\ECRM-NOBI-R2\\NobiV2\\Services\\Facebook\\FbSender.cs:line 296\n at Redsand.Site.Controllers.BackgroundController.SendFbCampaign(String camIds, Boolean debug) in D:\\WORKSPACE\\ECRM-NOBI-R2\\NobiV2\\Controllers\\BackgroundController.cs:line 778","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233088,"Source":"Redsand.Site","WatsonBuckets":null}
{}
{"data":{"exception":"InvalidOperationException","path":"/api/orders/transporter","message":"The entity type 'Error' requires a primary key to be defined. If you intended to use a keyless entity type, call 'HasNoKey' in 'OnModelCreating'. For more information on keyless entity types, see https://go.microsoft.com/fwlink/?linkid=2141943.","helpLink":null,"data":{},"source":"Microsoft.EntityFrameworkCore","stackTrace":" at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.NpgsqlModelValidator.Validate(IModel model, IDiagnosticsLogger`1 logger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelRuntimeInitializer.Initialize(IModel model, Boolean designTime, IDiagnosticsLogger`1 validationLogger)\n at Microsoft.EntityFrameworkCore.Infrastructure.ModelSource.GetModel(DbContext context, ModelCreationDependencies modelCreationDependencies, Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)\n at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScopeCache(ServiceCallSite callSite, RuntimeResolverContext context)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.<RealizeService>b__0(ServiceProviderEngineScope scope)\n at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)\n at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)\n at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()\n at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()\n at Microsoft.EntityFrameworkCore.DbContext.get_Model()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()\n at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Linq.IQueryable.get_Provider()\n at System.Linq.Queryable.Where[TSource](IQueryable`1 source, Expression`1 predicate)\n at Redsand.Site.RsCapAuthorizationHandler.<>c__DisplayClass7_0.<<HandleRequirementAsync>b__10>d.MoveNext() in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 71\n--- End of stack trace from previous location ---\n at Redsand.Site.Services.CacheService.GetOrCreateAsync[T](String key, Func`2 factory, Boolean setCache) in D:\\Nobi\\NobiV2\\Services\\CacheService.cs:line 84\n at Redsand.Site.RsCapAuthorizationHandler.HandleRequirementAsync(AuthorizationHandlerContext context, RsCapAuthorizationRequirement requirement) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationHandler.cs:line 68\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n at Redsand.Site.Services.SignalRAuthorizationMiddleware.Invoke(HttpContext httpContext) in D:\\Nobi\\NobiV2\\Services\\Auth\\AuthorizationMiddleware.cs:line 60\n at Redsand.Site.RequestCultureMiddleware.InvokeAsync(HttpContext context, IOptionsSnapshot`1 appsettings) in D:\\Nobi\\NobiV2\\Services\\Translate\\RequestCultureMiddleware.cs:line 56\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)","inner":null},"status":400,"statusText":"","headers":{"cache-control":"no-cache,no-store","content-length":"9625","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:12:04 GMT","expires":"-1","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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://nobiv2-stable.ecrm.vn","paramsSerializer":{},"method":"get","url":"/api/orders/transporter"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoic3lzdGVtYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6Ik9SRDQzU1BBREFaNkRSTEZKRTdUVkxaWldURTNLVUUzIiwic3ViIjoic3lzdGVtYWRtaW4iLCJqdGkiOiIzNjI3YTI3NS03ODdhLTRiYWEtYjdhNS0zMGUzOGIyYzM5ZjgiLCJpYXQiOjE3NzUwMzMyMjcsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IkFkbWluaXN0cmF0b3JzIiwibmJmIjoxNzc1MDMzMjI3LCJleHAiOjE3Nzc2MjUyMjcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.whoqwL9G4W1kryOw2IE77C6ReCDIbOfixNN1zZDXtrE","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"ClassName":"System.Exception","Message":"(#10) Tin nhắn này được gửi ngoài khoảng thời gian cho phép. Tìm hiểu thêm về chính sách mới tại đây: https://developers.facebook.com/docs/messenger-platform/policy-overview","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at Redsand.Site.Services.Facebook.Sdk.PageClient.SendMessaging(Messaging messaging, String pageToken) in D:\\WORKSPACE\\ECRM-NOBI-R2\\NobiV2\\Services\\Facebook\\FacebookSdk\\PageApiClient.cs:line 28\n at Redsand.Site.Services.FacebookApiService.SendMessaging(Messaging messaging, String pageToken) in D:\\WORKSPACE\\ECRM-NOBI-R2\\NobiV2\\Services\\Facebook\\FacebookApiService.cs:line 240\n at Redsand.Site.Services.FbSender.SendAsync(FbCampaign campaign, FbMessage facebook, Boolean resend, ApplicationDbContext _db) in D:\\WORKSPACE\\ECRM-NOBI-R2\\NobiV2\\Services\\Facebook\\FbSender.cs:line 198\n at Redsand.Site.Services.FbSender.SendAsync(FbCampaign campaign, FbMessage facebook, Boolean resend, ApplicationDbContext _db) in D:\\WORKSPACE\\ECRM-NOBI-R2\\NobiV2\\Services\\Facebook\\FbSender.cs:line 294\n at Redsand.Site.Controllers.BackgroundController.SendFbCampaign(String camIds, Boolean debug) in D:\\WORKSPACE\\ECRM-NOBI-R2\\NobiV2\\Controllers\\BackgroundController.cs:line 778","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233088,"Source":"Redsand.Site","WatsonBuckets":null}
{}
{"ClassName":"System.Exception","Message":"(#10) Tin nhắn này được gửi ngoài khoảng thời gian cho phép. Tìm hiểu thêm về chính sách mới tại đây: https://developers.facebook.com/docs/messenger-platform/policy-overview","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at Redsand.Site.Services.Facebook.Sdk.PageClient.SendMessaging(Messaging messaging, String pageToken) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Services\\Facebook\\FacebookSdk\\PageApiClient.cs:line 29\n at Redsand.Site.Services.FacebookApiService.SendMessaging(Messaging messaging, String pageToken) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Services\\Facebook\\FacebookApiService.cs:line 243\n at Redsand.Site.Services.FbSender.SendAsync(FbCampaign campaign, FbMessage facebook, Boolean resend, ApplicationDbContext _db) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Services\\Facebook\\FbSender.cs:line 308\n at Redsand.Site.Services.FbSender.SendAsync(FbCampaign campaign, FbMessage facebook, Boolean resend, ApplicationDbContext _db) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Services\\Facebook\\FbSender.cs:line 308\n at Redsand.Site.Controllers.BackgroundController.SendFbCampaign(String camIds, Boolean debug) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Controllers\\BackgroundController.cs:line 802","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233088,"Source":"Redsand.Site","WatsonBuckets":null}
{}
{"ClassName":"System.Exception","Message":"(#10) Tin nhắn này được gửi ngoài khoảng thời gian cho phép. Tìm hiểu thêm về chính sách mới tại đây: https://developers.facebook.com/docs/messenger-platform/policy-overview","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at Redsand.Site.Services.Facebook.Sdk.PageClient.SendMessaging(Messaging messaging, String pageToken) in E:\\redsand\\inven-check\\Services\\Facebook\\FacebookSdk\\PageApiClient.cs:line 28\n at Redsand.Site.Services.FacebookApiService.SendMessaging(Messaging messaging, String pageToken) in E:\\redsand\\inven-check\\Services\\Facebook\\FacebookApiService.cs:line 240\n at Redsand.Site.Services.FbSender.SendAsync(FbCampaign campaign, FbMessage facebook, Boolean resend, ApplicationDbContext _db) in E:\\redsand\\inven-check\\Services\\Facebook\\FbSender.cs:line 198\n at Redsand.Site.Services.FbSender.SendAsync(FbCampaign campaign, FbMessage facebook, Boolean resend, ApplicationDbContext _db) in E:\\redsand\\inven-check\\Services\\Facebook\\FbSender.cs:line 294\n at Redsand.Site.Controllers.BackgroundController.SendFbCampaign(String camIds, Boolean debug) in E:\\redsand\\inven-check\\Controllers\\BackgroundController.cs:line 778","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233088,"Source":"Redsand.Site","WatsonBuckets":null}
{}
{"ClassName":"System.Exception","Message":"(#10) Tin nhắn này được gửi ngoài khoảng thời gian cho phép. Tìm hiểu thêm về chính sách mới tại đây: https://developers.facebook.com/docs/messenger-platform/policy-overview","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at Redsand.Site.Services.Facebook.Sdk.PageClient.SendMessaging(Messaging messaging, String pageToken, Int32 retry) in D:\\Nobi\\NobiV2\\Services\\Facebook\\FacebookSdk\\PageApiClient.cs:line 35\n at Redsand.Site.Services.FacebookApiService.SendMessaging(Messaging messaging, String pageToken) in D:\\Nobi\\NobiV2\\Services\\Facebook\\FacebookApiService.cs:line 243\n at Redsand.Site.Services.FbSender.SendAsync(FbCampaign campaign, FbMessage facebook, Boolean resend, ApplicationDbContext _db) in D:\\Nobi\\NobiV2\\Services\\Facebook\\FbSender.cs:line 308\n at Redsand.Site.Services.FbSender.SendAsync(FbCampaign campaign, FbMessage facebook, Boolean resend, ApplicationDbContext _db) in D:\\Nobi\\NobiV2\\Services\\Facebook\\FbSender.cs:line 308\n at Redsand.Site.Controllers.BackgroundController.SendFbCampaign(String camIds, Boolean debug) in D:\\Nobi\\NobiV2\\Controllers\\BackgroundController.cs:line 802","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233088,"Source":"Redsand.Site","WatsonBuckets":null}
{}
{"data":{"exception":"Exception","message":"Không thể đăng nhập Mobifone","helpLink":null,"data":{},"source":"Redsand.Site","stackTrace":" at Mobifone3cSdk.Client.MobiFone3c.LoginAsync(String token) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Lib\\Mobifone3c\\Mobifone3c.cs:line 83\n at Redsand.Site.Services.MobifoneService.LoginAsync(String token) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Services\\Voip\\MobifoneService.cs:line 73\n at Redsand.Site.Api.ClientController.GetClientToken() in D:\\WORKSPACE\\ECRM-NOBI-R2\\Api\\Voip\\ClientController.cs:line 38\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":"Exception","message":"{\"code\":\"errors\",\"message\":\"Domain not Found\"}","helpLink":null,"data":{},"source":null,"stackTrace":null,"inner":{"exception":"Exception","message":"Không tìm thấy trang","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":"Fri, 03 Apr 2026 02:10:18 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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjI0IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvbmFtZSI6IkhBTkciLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6IllCVkJEQ05YTEFTUlJQNEdCTEE3VkRBVUYzS05UUEhOIiwic3ViIjoiSEFORyIsImp0aSI6IjliNDBhZDhhLTdjOTgtNDViMi1hOTIyLTliY2EyYzcyYjk3MSIsImlhdCI6MTc3MjU5MTIzMiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9yb2xlIjoiMy10ZWxlc2FsZSIsIm5iZiI6MTc3MjU5MTIzMiwiZXhwIjoxNzc1MTgzMjMyLCJpc3MiOiJSUyIsImF1ZCI6IlJTIn0.n1TpjxuK_Z0pL_MoHZMZkpjP3TuomGcg7GGvSkOLNPo","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://bshoang.nobi.pro","paramsSerializer":{},"method":"get","url":"/api/voip/client/token"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjI0IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvbmFtZSI6IkhBTkciLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6IllCVkJEQ05YTEFTUlJQNEdCTEE3VkRBVUYzS05UUEhOIiwic3ViIjoiSEFORyIsImp0aSI6IjliNDBhZDhhLTdjOTgtNDViMi1hOTIyLTliY2EyYzcyYjk3MSIsImlhdCI6MTc3MjU5MTIzMiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9yb2xlIjoiMy10ZWxlc2FsZSIsIm5iZiI6MTc3MjU5MTIzMiwiZXhwIjoxNzc1MTgzMjMyLCJpc3MiOiJSUyIsImF1ZCI6IlJTIn0.n1TpjxuK_Z0pL_MoHZMZkpjP3TuomGcg7GGvSkOLNPo","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"ClassName":"System.Exception","Message":"(#10) Tin nhắn này được gửi ngoài khoảng thời gian cho phép. Tìm hiểu thêm về chính sách mới tại đây: https://developers.facebook.com/docs/messenger-platform/policy-overview","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at Redsand.Site.Services.Facebook.Sdk.PageClient.SendMessaging(Messaging messaging, String pageToken, Int32 retry) in D:\\Nobi\\NobiV2\\Services\\Facebook\\FacebookSdk\\PageApiClient.cs:line 35\n at Redsand.Site.Services.FacebookApiService.SendMessaging(Messaging messaging, String pageToken) in D:\\Nobi\\NobiV2\\Services\\Facebook\\FacebookApiService.cs:line 243\n at Redsand.Site.Services.FbSender.SendAsync(FbCampaign campaign, FbMessage facebook, Boolean resend, ApplicationDbContext _db) in D:\\Nobi\\NobiV2\\Services\\Facebook\\FbSender.cs:line 308\n at Redsand.Site.Services.FbSender.SendAsync(FbCampaign campaign, FbMessage facebook, Boolean resend, ApplicationDbContext _db) in D:\\Nobi\\NobiV2\\Services\\Facebook\\FbSender.cs:line 308\n at Redsand.Site.Controllers.BackgroundController.SendFbCampaign(String camIds, Boolean debug) in D:\\Nobi\\NobiV2\\Controllers\\BackgroundController.cs:line 802","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233088,"Source":"Redsand.Site","WatsonBuckets":null}
{}
{"ClassName":"System.Exception","Message":"(#10) Tin nhắn này được gửi ngoài khoảng thời gian cho phép. Tìm hiểu thêm về chính sách mới tại đây: https://developers.facebook.com/docs/messenger-platform/policy-overview","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at Redsand.Site.Services.Facebook.Sdk.PageClient.SendMessaging(Messaging messaging, String pageToken) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Services\\Facebook\\FacebookSdk\\PageApiClient.cs:line 29\n at Redsand.Site.Services.FacebookApiService.SendMessaging(Messaging messaging, String pageToken) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Services\\Facebook\\FacebookApiService.cs:line 243\n at Redsand.Site.Services.FbSender.SendAsync(FbCampaign campaign, FbMessage facebook, Boolean resend, ApplicationDbContext _db) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Services\\Facebook\\FbSender.cs:line 308\n at Redsand.Site.Services.FbSender.SendAsync(FbCampaign campaign, FbMessage facebook, Boolean resend, ApplicationDbContext _db) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Services\\Facebook\\FbSender.cs:line 308\n at Redsand.Site.Controllers.BackgroundController.SendFbCampaign(String camIds, Boolean debug) in D:\\WORKSPACE\\ECRM-NOBI-R2\\Controllers\\BackgroundController.cs:line 802","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":-2146233088,"Source":"Redsand.Site","WatsonBuckets":null}
{}
{"data":{"exception":"ArgumentException","message":"IDX10703: Cannot create a 'Microsoft.IdentityModel.Tokens.SymmetricSecurityKey', key length is zero.","helpLink":null,"data":{},"source":"Microsoft.IdentityModel.Tokens","stackTrace":" at Microsoft.IdentityModel.Tokens.SymmetricSecurityKey..ctor(Byte[] key)\n at Mobifone3cSdk.Client.MobiFone3c.GenToken(String agentId) in E:\\redsand\\inven-check\\Lib\\Mobifone3c\\Mobifone3c.cs:line 56\n at Redsand.Site.Services.MobifoneService.GetToken(String agentId) in E:\\redsand\\inven-check\\Services\\Voip\\MobifoneService.cs:line 67\n at Redsand.Site.Api.ClientController.GetClientToken() in E:\\redsand\\inven-check\\Api\\Voip\\ClientController.cs:line 31\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()\n--- End of stack trace from previous location ---\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":null},"status":400,"statusText":"","headers":{"cache-control":"no-store","content-type":"application/json; charset=utf-8","date":"Fri, 03 Apr 2026 02:09:37 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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjgiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiMDk3NTUwODg1MSIsIkFzcE5ldC5JZGVudGl0eS5TZWN1cml0eVN0YW1wIjoiRFZTVzY1SExQWE9MNEQzQjNMS0FSQzNWSjVQU05TSVgiLCJzdWIiOiIwOTc1NTA4ODUxIiwianRpIjoiZTI3MGZiYjAtYmYzYS00Y2RiLWEwNjgtMjdhNzI5NjdiZDI1IiwiaWF0IjoxNzc0NDAxNzcyLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOlsiMy1uaGFuLXZpZW4tYmFuLWhhbmciLCIxNi10ZWFtLWhuLTEiXSwibmJmIjoxNzc0NDAxNzcyLCJleHAiOjE3NzY5OTM3NzIsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.nQjA1ip1nNyAg9_JNJQCwhiVkoeTTt6wvgwNzpCZfl0","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://ikiza.nobi.pro","paramsSerializer":{},"method":"get","url":"/api/voip/client/token"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjgiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiMDk3NTUwODg1MSIsIkFzcE5ldC5JZGVudGl0eS5TZWN1cml0eVN0YW1wIjoiRFZTVzY1SExQWE9MNEQzQjNMS0FSQzNWSjVQU05TSVgiLCJzdWIiOiIwOTc1NTA4ODUxIiwianRpIjoiZTI3MGZiYjAtYmYzYS00Y2RiLWEwNjgtMjdhNzI5NjdiZDI1IiwiaWF0IjoxNzc0NDAxNzcyLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOlsiMy1uaGFuLXZpZW4tYmFuLWhhbmciLCIxNi10ZWFtLWhuLTEiXSwibmJmIjoxNzc0NDAxNzcyLCJleHAiOjE3NzY5OTM3NzIsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.nQjA1ip1nNyAg9_JNJQCwhiVkoeTTt6wvgwNzpCZfl0","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"}
{}
{"data":"<html>\r\n<head><title>404 Not Found</title></head>\r\n<body>\r\n<center><h1>404 Not Found</h1></center>\r\n<hr><center>nginx/1.28.0</center>\r\n</body>\r\n</html>\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n","status":404,"statusText":"","headers":{"content-length":"555","content-type":"text/html","date":"Fri, 03 Apr 2026 00:36:46 GMT","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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjE1IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvbmFtZSI6Imhvbmd0aHVraW90IiwiQXNwTmV0LklkZW50aXR5LlNlY3VyaXR5U3RhbXAiOiJNMkZEMzRIWDZaM1NOSEpGRzJKTFNWNkI3NU1JRlhNWiIsInN1YiI6Imhvbmd0aHVraW90IiwianRpIjoiNDM4NzRmZTAtNzI1ZS00Y2MyLTg3YzYtNjg0OWIwZTkyNmEyIiwiaWF0IjoxNzczNzE5MDU3LCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOlsiMS1naWFtLWRvYyIsIjM1LW5oYW4tdmllbi1iYW4taGFuZyIsIjItbmhhbi12aWVuLWJhbi1oYW5nLXRvbmciXSwibmJmIjoxNzczNzE5MDU3LCJleHAiOjE3NzYzMTEwNTcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.LretCVIgDeiyvJJRDQBF0ALzkS05qNpse6L7BEioEwc","ContentType":"application/json","x-hour-offset":"7","BranchId":"7","Locale":"vi"},"baseURL":"https://thoitrang360.dcso.pro","paramsSerializer":{},"method":"get","url":"/api/transporters"},"request":{}}
{"Accept":"application/json","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjE1IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvbmFtZSI6Imhvbmd0aHVraW90IiwiQXNwTmV0LklkZW50aXR5LlNlY3VyaXR5U3RhbXAiOiJNMkZEMzRIWDZaM1NOSEpGRzJKTFNWNkI3NU1JRlhNWiIsInN1YiI6Imhvbmd0aHVraW90IiwianRpIjoiNDM4NzRmZTAtNzI1ZS00Y2MyLTg3YzYtNjg0OWIwZTkyNmEyIiwiaWF0IjoxNzczNzE5MDU3LCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOlsiMS1naWFtLWRvYyIsIjM1LW5oYW4tdmllbi1iYW4taGFuZyIsIjItbmhhbi12aWVuLWJhbi1oYW5nLXRvbmciXSwibmJmIjoxNzczNzE5MDU3LCJleHAiOjE3NzYzMTEwNTcsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.LretCVIgDeiyvJJRDQBF0ALzkS05qNpse6L7BEioEwc","ContentType":"application/json","x-hour-offset":"7","BranchId":"7","Locale":"vi"}
{}