{"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.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)\n at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync()\n at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken)\n at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken)\n at Redsand.Site.Api.OrdersEcommerceController.Create(EcommerceOrderBody model, String conversationId) in E:\\redsand\\BaseV2-Net6\\Api\\EcommerceOrder\\OrderController.cs:line 347\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":"Failed to connect to 127.0.0.1:5432","helpLink":null,"data":{},"source":"Npgsql","stackTrace":" at Npgsql.Internal.NpgsqlConnector.ConnectAsync(NpgsqlTimeout timeout, CancellationToken cancellationToken)\n at Npgsql.Internal.NpgsqlConnector.RawOpen(SslMode sslMode, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken, Boolean isFirstAttempt)\n at Npgsql.Internal.NpgsqlConnector.<Open>g__OpenCore|203_1(NpgsqlConnector conn, SslMode sslMode, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken, Boolean isFirstAttempt)\n at Npgsql.Internal.NpgsqlConnector.Open(NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)\n at Npgsql.ConnectorPool.OpenNewConnector(NpgsqlConnection conn, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)\n 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 Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternalAsync(Boolean errorsExpected, CancellationToken cancellationToken)\n at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternalAsync(Boolean errorsExpected, CancellationToken cancellationToken)\n at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenAsync(CancellationToken cancellationToken, Boolean errorsExpected)\n at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)\n at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.InitializeReaderAsync(AsyncEnumerator enumerator, CancellationToken cancellationToken)\n at Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken)","inner":{"exception":"TimeoutException","message":"Timeout during connection attempt","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":"Mon, 15 Dec 2025 00:49:29 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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjUiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiMDk3NjU4ODMyNiIsIkFzcE5ldC5JZGVudGl0eS5TZWN1cml0eVN0YW1wIjoiTEFDWjQzRUZRS1RMTlNPVEdBTUZHRVMzNUU2Q1lZRUQiLCJzdWIiOiIwOTc2NTg4MzI2IiwianRpIjoiNWUxNjMxOGItYzkyOS00ZTI3LWFkM2MtODY0ZTczYWY5YzBlIiwiaWF0IjoxNzY1NTAyMDI4LCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOlsiMy1zYWxlLXRydWMtcGFnZSIsIjMtdGVsZXNhbGUiLCI0LW5oYW4tdmllbi1tYXJrZXRpbmciLCI5LWxlYWRlci1zYWxlIiwiOS1zYWxlLXRydWMtcGFnZSIsIjktdGVsZXNhbGUiLCIxMC1uaGFuLXZpZW4tbWFya2V0aW5nIiwiMy1sZWFkZXItc2FsZSJdLCJuYmYiOjE3NjU1MDIwMjgsImV4cCI6MTc2Njc5ODAyOCwiaXNzIjoiUlMiLCJhdWQiOiJSUyJ9.vlq2_bLSh5uGFMjMksYFEQTx9W1E4Mbzf86TuWYFw_s","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://hqgroupv2.nobi.pro","paramsSerializer":{},"method":"post","url":"/api/orders","data":"{\"invoice\":{\"type\":1,\"customerId\":564031,\"isDiscountPrice\":true,\"discount\":60000,\"relatedCustomerId\":null,\"details\":null,\"warehouseId\":1,\"notes\":null,\"vat\":0,\"total\":398000,\"shippingFee\":13000,\"shippingFeeX\":13000,\"ecommerceDetails\":[{\"productId\":70,\"key\":70,\"isCombo\":false,\"product\":{\"id\":70,\"name\":\"Giày TT Kalamita K226(40 - Kem Nâu)\",\"weight\":1000,\"length\":41,\"width\":15,\"height\":9,\"isCombo\":false,\"url\":\"/uploads/hqgroupv2.nobi.pro/product/2025-03-18/k226-kem-nau.png\",\"sku\":\"TT-GD-K226 Kem Nâu 40\",\"code\":\"TT-GD-K226-40 Kem Nâu\",\"price\":229000,\"unit\":\"Đôi\",\"inventoryBefore\":0,\"inventory\":-2396,\"productId\":70,\"priceAvg\":90000,\"ecommerceFloorVariationId\":null},\"quantity\":1,\"weight\":1000,\"length\":41,\"width\":15,\"height\":9,\"price\":229000,\"discount\":0,\"isDiscountPrice\":true,\"totalAmount\":229000,\"quantityX\":1},{\"productId\":71,\"key\":71,\"isCombo\":false,\"product\":{\"id\":71,\"name\":\"Giày TT Kalamita K226(40 - Xanh Than)\",\"weight\":1000,\"length\":41,\"width\":15,\"height\":9,\"isCombo\":false,\"url\":\"/uploads/hqgroupv2.nobi.pro/product/2025-03-18/k226-xanh-than.png\",\"sku\":\"TT-GD-K226 Xanh Than 40\",\"code\":\"TT-GD-K226-40 Xanh Than\",\"price\":229000,\"unit\":\"Đôi\",\"inventoryBefore\":0,\"inventory\":-2191,\"productId\":71,\"priceAvg\":90000,\"ecommerceFloorVariationId\":null},\"quantity\":1,\"weight\":1000,\"length\":41,\"width\":15,\"height\":9,\"price\":229000,\"discount\":0,\"isDiscountPrice\":true,\"totalAmount\":229000,\"quantityX\":1}],\"insuranceValue\":\"458000.000\"},\"customer\":null,\"sourceId\":2,\"transporter\":\"JNT\",\"transporterId\":5,\"trackingCode\":null,\"weight\":2000,\"salerId\":5,\"status\":1,\"checkingPolicy\":1,\"customerName\":\"Nguyễn Tât\",\"customerNotes\":\"Khách được ĐỒNG KIỂM VỚI SHIP. Lưu ý THỬ SP NƠI SẠCH SẼ TRÁNH LÀM BẨN. Trường hợp KHÔNG NHẬN HÀNG thu của khách 30k. Nhắn Feishu cho BƯU CỤC GỬI để hạ cod nhanh\",\"customerPhoneNumber\":\"0357092598\",\"orderAddress\":{\"provinceId\":\"30\",\"districtId\":\"30296\",\"wardId\":\"3029610954\",\"shippingAddress\":\"nhân kiệt xã hùng thắng\",\"provinceName\":\"Hải Dương\",\"districtName\":\"Huyện Bình Giang\",\"wardName\":\"Xã Hùng Thắng\"},\"orderExtra\":{\"weight\":2000,\"flagsStr\":\"{}\",\"flags\":{}},\"orderFee\":{},\"transporterServiceId\":\"EXPRESS\",\"isReturnPart\":true,\"transportType\":0,\"isFreeShipping\":true,\"isCustomFee\":false,\"couponIds\":[],\"totalAmount\":398000,\"conversationId\":\"113975376833_24647428511601881\",\"createdFrom\":\"nobichat\"}"},"request":{}}
"{\"invoice\":{\"type\":1,\"customerId\":564031,\"isDiscountPrice\":true,\"discount\":60000,\"relatedCustomerId\":null,\"details\":null,\"warehouseId\":1,\"notes\":null,\"vat\":0,\"total\":398000,\"shippingFee\":13000,\"shippingFeeX\":13000,\"ecommerceDetails\":[{\"productId\":70,\"key\":70,\"isCombo\":false,\"product\":{\"id\":70,\"name\":\"Giày TT Kalamita K226(40 - Kem Nâu)\",\"weight\":1000,\"length\":41,\"width\":15,\"height\":9,\"isCombo\":false,\"url\":\"/uploads/hqgroupv2.nobi.pro/product/2025-03-18/k226-kem-nau.png\",\"sku\":\"TT-GD-K226 Kem Nâu 40\",\"code\":\"TT-GD-K226-40 Kem Nâu\",\"price\":229000,\"unit\":\"Đôi\",\"inventoryBefore\":0,\"inventory\":-2396,\"productId\":70,\"priceAvg\":90000,\"ecommerceFloorVariationId\":null},\"quantity\":1,\"weight\":1000,\"length\":41,\"width\":15,\"height\":9,\"price\":229000,\"discount\":0,\"isDiscountPrice\":true,\"totalAmount\":229000,\"quantityX\":1},{\"productId\":71,\"key\":71,\"isCombo\":false,\"product\":{\"id\":71,\"name\":\"Giày TT Kalamita K226(40 - Xanh Than)\",\"weight\":1000,\"length\":41,\"width\":15,\"height\":9,\"isCombo\":false,\"url\":\"/uploads/hqgroupv2.nobi.pro/product/2025-03-18/k226-xanh-than.png\",\"sku\":\"TT-GD-K226 Xanh Than 40\",\"code\":\"TT-GD-K226-40 Xanh Than\",\"price\":229000,\"unit\":\"Đôi\",\"inventoryBefore\":0,\"inventory\":-2191,\"productId\":71,\"priceAvg\":90000,\"ecommerceFloorVariationId\":null},\"quantity\":1,\"weight\":1000,\"length\":41,\"width\":15,\"height\":9,\"price\":229000,\"discount\":0,\"isDiscountPrice\":true,\"totalAmount\":229000,\"quantityX\":1}],\"insuranceValue\":\"458000.000\"},\"customer\":null,\"sourceId\":2,\"transporter\":\"JNT\",\"transporterId\":5,\"trackingCode\":null,\"weight\":2000,\"salerId\":5,\"status\":1,\"checkingPolicy\":1,\"customerName\":\"Nguyễn Tât\",\"customerNotes\":\"Khách được ĐỒNG KIỂM VỚI SHIP. Lưu ý THỬ SP NƠI SẠCH SẼ TRÁNH LÀM BẨN. Trường hợp KHÔNG NHẬN HÀNG thu của khách 30k. Nhắn Feishu cho BƯU CỤC GỬI để hạ cod nhanh\",\"customerPhoneNumber\":\"0357092598\",\"orderAddress\":{\"provinceId\":\"30\",\"districtId\":\"30296\",\"wardId\":\"3029610954\",\"shippingAddress\":\"nhân kiệt xã hùng thắng\",\"provinceName\":\"Hải Dương\",\"districtName\":\"Huyện Bình Giang\",\"wardName\":\"Xã Hùng Thắng\"},\"orderExtra\":{\"weight\":2000,\"flagsStr\":\"{}\",\"flags\":{}},\"orderFee\":{},\"transporterServiceId\":\"EXPRESS\",\"isReturnPart\":true,\"transportType\":0,\"isFreeShipping\":true,\"isCustomFee\":false,\"couponIds\":[],\"totalAmount\":398000,\"conversationId\":\"113975376833_24647428511601881\",\"createdFrom\":\"nobichat\"}"