{"data":{"exception":"InvalidOperationException","message":"An exception has been raised that is likely due to a transient failure.","helpLink":null,"data":{},"source":"Npgsql.EntityFrameworkCore.PostgreSQL","stackTrace":" at Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)\n at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.OpenConnection(DatabaseFacade databaseFacade)\n at Z.EntityFramework.Extensions.BatchUpdate.Execute[T](IQueryable`1 query, Expression`1 updateFactory)\n at System.Threading.Tasks.Task`1.InnerInvoke()\n at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)\n--- End of stack trace from previous location ---\n at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)\n--- End of stack trace from previous location ---\n at Redsand.Site.Api.OrdersEcommerceController.Create(EcommerceOrderBody model, String conversationId) in D:\\Nobi\\NobiV2\\Api\\EcommerceOrder\\OrderController.cs:line 832\n at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)","inner":{"exception":"NpgsqlException","message":"The connection pool has been exhausted, either raise 'Max Pool Size' (currently 35) or 'Timeout' (currently 15 seconds) in your connection string.","helpLink":null,"data":{},"source":"Npgsql","stackTrace":" at Npgsql.ConnectorPool.<Get>g__RentAsync|28_0(NpgsqlConnection conn, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)\n at Npgsql.NpgsqlConnection.<Open>g__OpenAsync|45_0(Boolean async, CancellationToken cancellationToken)\n at Npgsql.NpgsqlConnection.Open()\n at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternal(Boolean errorsExpected)\n at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)","inner":{"exception":"TimeoutException","message":"The operation has timed out.","helpLink":null,"data":{},"source":null,"stackTrace":null,"inner":null}}},"status":400,"statusText":"","headers":{"access-control-allow-origin":"*","cache-control":"no-store","content-type":"application/json; charset=utf-8","date":"Sun, 02 Aug 2026 10:02:00 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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjI1IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvbmFtZSI6Im5oYW52aWVuaHVlYW5oIiwiQXNwTmV0LklkZW50aXR5LlNlY3VyaXR5U3RhbXAiOiJDRkdGQzdYNE01TTJWN1VCUk5XSU1FVVdSNERWUFpHWSIsInN1YiI6Im5oYW52aWVuaHVlYW5oIiwianRpIjoiNWJlZTFlMGEtYjBlYy00NTYzLWFlMzItYjk1ZGQzZTAwNmNhIiwiaWF0IjoxNzg1MTMyMDExLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOlsiMS1naWFtLWRvYyIsIjMtc2FsZS10cnVjLXBhZ2UiXSwibmJmIjoxNzg1MTMyMDExLCJleHAiOjE3ODc3MjQwMTEsImlzcyI6IlJTIiwiYXVkIjoiUlMifQ.c9j57-py3vRk-ClHHJeJsHtN4KB-mK1HhNGmiAmJ3g8","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://thoitrangcaocap6666.nobi.pro","paramsSerializer":{},"method":"post","url":"/api/orders","data":"{\"invoice\":{\"type\":1,\"customerId\":375567,\"isDiscountPrice\":true,\"discount\":0,\"relatedCustomerId\":null,\"details\":null,\"warehouseId\":1,\"notes\":null,\"vat\":0,\"total\":425000,\"shippingFee\":19143,\"shippingFeeX\":19143,\"ecommerceDetails\":[{\"productId\":247576,\"key\":247576,\"isCombo\":false,\"product\":{\"id\":247576,\"name\":\"Bộ ngủ xanh cổ bèo tròn cao cấp - L\",\"weight\":0,\"length\":null,\"width\":null,\"height\":null,\"isCombo\":false,\"url\":\"/uploads/thoitrangcaocap6666.nobi.pro/product/52cab3b351064861ad20f437aab7333e-jpeg_2.jpg\",\"sku\":null,\"code\":\"SP8111713091\",\"price\":790000,\"unit\":\"--\",\"inventoryBefore\":0,\"inventory\":1,\"productId\":137195,\"priceAvg\":480000,\"ecommerceFloorVariationId\":null},\"quantity\":1,\"weight\":50,\"length\":1,\"width\":1,\"height\":1,\"price\":390000,\"discount\":0,\"isDiscountPrice\":true,\"totalAmount\":390000,\"quantityX\":1},{\"productId\":7996,\"key\":7996,\"isCombo\":false,\"product\":{\"id\":7996,\"name\":\"Tiền ship - \",\"weight\":0,\"length\":null,\"width\":null,\"height\":null,\"isCombo\":false,\"url\":\"/uploads/thoitrangcaocap6666.nobi.pro/product/550dbccfcb1a4f8daf24729361c24061-jpeg.jpg\",\"sku\":null,\"code\":\"SP077746\",\"price\":35000,\"unit\":\"--\",\"inventoryBefore\":0,\"inventory\":342,\"productId\":17013,\"priceAvg\":35000,\"ecommerceFloorVariationId\":null},\"quantity\":1,\"weight\":50,\"length\":1,\"width\":1,\"height\":1,\"price\":35000,\"discount\":0,\"isDiscountPrice\":true,\"totalAmount\":35000,\"quantityX\":1}],\"insuranceValue\":\"425000.000\"},\"customer\":null,\"sourceId\":16,\"transporter\":\"GiaoHangTietKiem\",\"transporterId\":14,\"trackingCode\":null,\"weight\":999,\"salerId\":25,\"status\":1,\"checkingPolicy\":3,\"customerName\":\"Nga Tây\",\"customerNotes\":\" Đơn này khách cần gấp a! Không tự ý xem hàng , có vấn đề gì phát sinh gọi shop , Không Tự Ý Sửa Cod ! Không tự Huỷ đơn. Khách KO lấy hàng thu 50k ship. SDT shop: 0763381393. MINH PHUONG PHUNG TKS shipper nhiều . KHÁCH MUỐN KHIẾU NẠI VUI LÒNG QUAY VIDEO Ạ\",\"customerPhoneNumber\":\"0817440610\",\"orderAddress\":{\"provinceId\":\"74\",\"districtId\":\"74723\",\"wardId\":\"7472325891\",\"addressLevel4\":\" \",\"shippingAddress\":\"Tổ 4 Khu phố Khánh Lợi, Phường Tân Phước Khánh, Thành phố Tân Uyên, Bình Dương\",\"provinceName\":\"Bình Dương\",\"districtName\":\"Thành phố Tân Uyên\",\"wardName\":\"Phường Tân Phước Khánh\"},\"orderExtra\":{\"weight\":999,\"flagsStr\":\"{}\",\"flags\":{}},\"orderFee\":{},\"transporterServiceId\":\"113537\",\"transportType\":0,\"sendToTransporterAfterSave\":false,\"isFreeShipping\":true,\"isCustomFee\":false,\"couponIds\":[],\"totalAmount\":425000,\"conversationId\":\"105844335585735_33068930412697705\",\"createdFrom\":\"nobichat\"}"},"request":{}}
"{\"invoice\":{\"type\":1,\"customerId\":375567,\"isDiscountPrice\":true,\"discount\":0,\"relatedCustomerId\":null,\"details\":null,\"warehouseId\":1,\"notes\":null,\"vat\":0,\"total\":425000,\"shippingFee\":19143,\"shippingFeeX\":19143,\"ecommerceDetails\":[{\"productId\":247576,\"key\":247576,\"isCombo\":false,\"product\":{\"id\":247576,\"name\":\"Bộ ngủ xanh cổ bèo tròn cao cấp - L\",\"weight\":0,\"length\":null,\"width\":null,\"height\":null,\"isCombo\":false,\"url\":\"/uploads/thoitrangcaocap6666.nobi.pro/product/52cab3b351064861ad20f437aab7333e-jpeg_2.jpg\",\"sku\":null,\"code\":\"SP8111713091\",\"price\":790000,\"unit\":\"--\",\"inventoryBefore\":0,\"inventory\":1,\"productId\":137195,\"priceAvg\":480000,\"ecommerceFloorVariationId\":null},\"quantity\":1,\"weight\":50,\"length\":1,\"width\":1,\"height\":1,\"price\":390000,\"discount\":0,\"isDiscountPrice\":true,\"totalAmount\":390000,\"quantityX\":1},{\"productId\":7996,\"key\":7996,\"isCombo\":false,\"product\":{\"id\":7996,\"name\":\"Tiền ship - \",\"weight\":0,\"length\":null,\"width\":null,\"height\":null,\"isCombo\":false,\"url\":\"/uploads/thoitrangcaocap6666.nobi.pro/product/550dbccfcb1a4f8daf24729361c24061-jpeg.jpg\",\"sku\":null,\"code\":\"SP077746\",\"price\":35000,\"unit\":\"--\",\"inventoryBefore\":0,\"inventory\":342,\"productId\":17013,\"priceAvg\":35000,\"ecommerceFloorVariationId\":null},\"quantity\":1,\"weight\":50,\"length\":1,\"width\":1,\"height\":1,\"price\":35000,\"discount\":0,\"isDiscountPrice\":true,\"totalAmount\":35000,\"quantityX\":1}],\"insuranceValue\":\"425000.000\"},\"customer\":null,\"sourceId\":16,\"transporter\":\"GiaoHangTietKiem\",\"transporterId\":14,\"trackingCode\":null,\"weight\":999,\"salerId\":25,\"status\":1,\"checkingPolicy\":3,\"customerName\":\"Nga Tây\",\"customerNotes\":\" Đơn này khách cần gấp a! Không tự ý xem hàng , có vấn đề gì phát sinh gọi shop , Không Tự Ý Sửa Cod ! Không tự Huỷ đơn. Khách KO lấy hàng thu 50k ship. SDT shop: 0763381393. MINH PHUONG PHUNG TKS shipper nhiều . KHÁCH MUỐN KHIẾU NẠI VUI LÒNG QUAY VIDEO Ạ\",\"customerPhoneNumber\":\"0817440610\",\"orderAddress\":{\"provinceId\":\"74\",\"districtId\":\"74723\",\"wardId\":\"7472325891\",\"addressLevel4\":\" \",\"shippingAddress\":\"Tổ 4 Khu phố Khánh Lợi, Phường Tân Phước Khánh, Thành phố Tân Uyên, Bình Dương\",\"provinceName\":\"Bình Dương\",\"districtName\":\"Thành phố Tân Uyên\",\"wardName\":\"Phường Tân Phước Khánh\"},\"orderExtra\":{\"weight\":999,\"flagsStr\":\"{}\",\"flags\":{}},\"orderFee\":{},\"transporterServiceId\":\"113537\",\"transportType\":0,\"sendToTransporterAfterSave\":false,\"isFreeShipping\":true,\"isCustomFee\":false,\"couponIds\":[],\"totalAmount\":425000,\"conversationId\":\"105844335585735_33068930412697705\",\"createdFrom\":\"nobichat\"}"