{"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\\inven-check\\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":"Thu, 22 Jan 2026 14:23:39 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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjQ2IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvbmFtZSI6IjA4OTg3MzU1MjgiLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6IkIzVUVWTE1KUEhTMkY3TktFMlVSRVM3SklLNlFYWUIzIiwic3ViIjoiMDg5ODczNTUyOCIsImp0aSI6Ijc2ZmY3ZTkyLWUyNzQtNGE3MS04YmJhLTY1NGU0M2U3NzMwMiIsImlhdCI6MTc2OTA5MTU3OCwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9yb2xlIjpbIjgtbGVhZGVyLXNhbGVzIiwiOC1uaGFuLXZpZW4tc2FsZSIsIjE2LW5oYW4tdmllbi1zYWxlIl0sIm5iZiI6MTc2OTA5MTU3OCwiZXhwIjoxNzY5MTc3OTc4LCJpc3MiOiJSUyIsImF1ZCI6IlJTIn0.W61lW3THNn1kSZ0Kg0YjKAN002CbA9KzRrhyq3F8Og0","ContentType":"application/json","x-hour-offset":"7","BranchId":"3","Locale":"vi"},"baseURL":"https://vohuyen.dcso.pro","paramsSerializer":{},"method":"post","url":"/api/orders","data":"{\"invoice\":{\"type\":1,\"customerId\":null,\"isDiscountPrice\":true,\"discount\":0,\"relatedCustomerId\":null,\"details\":null,\"warehouseId\":2,\"notes\":\"KM - Tặng 10g trà\",\"vat\":0,\"total\":596000,\"shippingFee\":14000,\"shippingFeeX\":14000,\"ecommerceDetails\":[{\"productId\":147,\"key\":147,\"isCombo\":true,\"product\":{\"id\":147,\"name\":\"2 TRÀ 30 + TẶNG 1 TRÀ 10\",\"weight\":1200,\"length\":30,\"width\":20,\"height\":20,\"isCombo\":true,\"url\":null,\"sku\":null,\"code\":\"TRATANGTRA\",\"price\":596000,\"unit\":\"BỘ\",\"inventoryBefore\":0,\"inventory\":-1263,\"productId\":152,\"priceAvg\":0,\"ecommerceFloorVariationId\":null},\"quantity\":1,\"weight\":1200,\"length\":30,\"width\":20,\"height\":20,\"price\":596000,\"discount\":0,\"isDiscountPrice\":true,\"totalAmount\":596000,\"quantityX\":1}],\"insuranceValue\":\"596000.000\"},\"customer\":null,\"transporter\":\"SPXExpress\",\"transporterId\":10,\"trackingCode\":null,\"weight\":1200,\"salerId\":46,\"status\":1,\"checkingPolicy\":1,\"customerName\":\"Đinh thị diệu linh\",\"customerNotes\":\"\",\"customerPhoneNumber\":\"0915656964\",\"orderAddress\":{\"provinceId\":\"01\",\"districtId\":\"01280\",\"wardId\":\"0128010321\",\"shippingAddress\":\"Số nhà 08 xóm Hàng Đào đường 30/4 thôn Bối Khê\",\"provinceName\":\"Hà Nội\",\"districtName\":\"Huyện Phú Xuyên\",\"wardName\":\"Xã Chuyên Mỹ\"},\"orderExtra\":{\"weight\":1200,\"flagsStr\":\"{}\",\"flags\":{}},\"orderFee\":{\"codFailedAmount\":null},\"transporterServiceId\":\"1\",\"transportType\":0,\"isFreeShipping\":true,\"isCustomFee\":false,\"couponIds\":[],\"totalAmount\":596000}"},"request":{}}
"{\"invoice\":{\"type\":1,\"customerId\":null,\"isDiscountPrice\":true,\"discount\":0,\"relatedCustomerId\":null,\"details\":null,\"warehouseId\":2,\"notes\":\"KM - Tặng 10g trà\",\"vat\":0,\"total\":596000,\"shippingFee\":14000,\"shippingFeeX\":14000,\"ecommerceDetails\":[{\"productId\":147,\"key\":147,\"isCombo\":true,\"product\":{\"id\":147,\"name\":\"2 TRÀ 30 + TẶNG 1 TRÀ 10\",\"weight\":1200,\"length\":30,\"width\":20,\"height\":20,\"isCombo\":true,\"url\":null,\"sku\":null,\"code\":\"TRATANGTRA\",\"price\":596000,\"unit\":\"BỘ\",\"inventoryBefore\":0,\"inventory\":-1263,\"productId\":152,\"priceAvg\":0,\"ecommerceFloorVariationId\":null},\"quantity\":1,\"weight\":1200,\"length\":30,\"width\":20,\"height\":20,\"price\":596000,\"discount\":0,\"isDiscountPrice\":true,\"totalAmount\":596000,\"quantityX\":1}],\"insuranceValue\":\"596000.000\"},\"customer\":null,\"transporter\":\"SPXExpress\",\"transporterId\":10,\"trackingCode\":null,\"weight\":1200,\"salerId\":46,\"status\":1,\"checkingPolicy\":1,\"customerName\":\"Đinh thị diệu linh\",\"customerNotes\":\"\",\"customerPhoneNumber\":\"0915656964\",\"orderAddress\":{\"provinceId\":\"01\",\"districtId\":\"01280\",\"wardId\":\"0128010321\",\"shippingAddress\":\"Số nhà 08 xóm Hàng Đào đường 30/4 thôn Bối Khê\",\"provinceName\":\"Hà Nội\",\"districtName\":\"Huyện Phú Xuyên\",\"wardName\":\"Xã Chuyên Mỹ\"},\"orderExtra\":{\"weight\":1200,\"flagsStr\":\"{}\",\"flags\":{}},\"orderFee\":{\"codFailedAmount\":null},\"transporterServiceId\":\"1\",\"transportType\":0,\"isFreeShipping\":true,\"isCustomFee\":false,\"couponIds\":[],\"totalAmount\":596000}"