{"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":"Exception while reading from stream","helpLink":null,"data":{},"source":"Npgsql","stackTrace":" at Npgsql.Internal.NpgsqlReadBuffer.<Ensure>g__EnsureLong|41_0(NpgsqlReadBuffer buffer, Int32 count, Boolean async, Boolean readingNotifications)\n at Npgsql.Internal.NpgsqlConnector.<ReadMessage>g__ReadMessageLong|223_0(NpgsqlConnector connector, Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)\n at Npgsql.Internal.NpgsqlConnector.AuthenticateSASL(List`1 mechanisms, String username, Boolean async, CancellationToken cancellationToken)\n at Npgsql.Internal.NpgsqlConnector.Authenticate(String username, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)\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 reading 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":"Fri, 16 Jan 2026 03:33:47 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.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEwIiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvbmFtZSI6IjAzNTI0OTA2MjciLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6IjZVQUFDRjJSV0M2QUpMSkVJSzRCVDdLSFZGSENMTUdMIiwic3ViIjoiMDM1MjQ5MDYyNyIsImp0aSI6ImNlMjcwZmQ2LWViNWMtNGNhMi1hZDhhLWJiZDI3ZWQ3MWZmMSIsImlhdCI6MTc2NzU4ODA4MiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9yb2xlIjoiMy10ZWxlc2FsZSIsIm5iZiI6MTc2NzU4ODA4MiwiZXhwIjoxNzY4ODg0MDgyLCJpc3MiOiJSUyIsImF1ZCI6IlJTIn0.xCD5wIhJAeNv3EYF9muPKi0Ew5u95LY85i7_7xo-PYY","ContentType":"application/json","x-hour-offset":"7","BranchId":"1","Locale":"vi"},"baseURL":"https://lunova.nobi.pro","paramsSerializer":{},"method":"post","url":"/api/orders","data":"{\"invoice\":{\"type\":1,\"customerId\":158066,\"isDiscountPrice\":true,\"discount\":0,\"relatedCustomerId\":null,\"details\":null,\"warehouseId\":1,\"notes\":null,\"vat\":0,\"total\":116500,\"shippingFee\":30000,\"shippingFeeX\":12500,\"ecommerceDetails\":[{\"productId\":87,\"key\":87,\"isCombo\":false,\"product\":{\"id\":87,\"name\":\"THẮT LƯNG T208(NÂU)\",\"weight\":990,\"length\":41,\"width\":15,\"height\":9,\"isCombo\":false,\"url\":\"/uploads/lunova.nobi.pro/product/2025-07-22/14.png\",\"sku\":\"T208-NAU\",\"code\":\"T208-NAU\",\"price\":99000,\"unit\":\"Combo\",\"inventoryBefore\":0,\"inventory\":-9074,\"productId\":87,\"priceAvg\":0,\"ecommerceFloorVariationId\":null},\"quantity\":1,\"weight\":990,\"length\":41,\"width\":15,\"height\":9,\"price\":99000,\"discount\":0,\"isDiscountPrice\":true,\"totalAmount\":99000,\"quantityX\":1}],\"insuranceValue\":\"99000.000\"},\"customer\":null,\"transporter\":\"JNT\",\"transporterId\":3,\"trackingCode\":null,\"weight\":990,\"salerId\":10,\"status\":1,\"checkingPolicy\":1,\"customerName\":\"Nguyễn Văn Lương \",\"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\",\"customerPhoneNumber\":\"0393923718\",\"orderAddress\":{\"provinceId\":\"15\",\"districtId\":\"15136\",\"wardId\":\"1513604417\",\"shippingAddress\":\"Thôn An Hòa, Xã An Thịnh, Huyện Văn Yên, Yên Bái\",\"provinceName\":\"Yên Bái\",\"districtName\":\"Huyện Văn Yên\",\"wardName\":\"Xã An Thịnh\"},\"orderExtra\":{\"weight\":990,\"flagsStr\":\"{}\",\"flags\":{}},\"orderFee\":{},\"transporterServiceId\":\"EXPRESS\",\"isReturnPart\":true,\"transportType\":0,\"isFreeShipping\":false,\"isCustomFee\":true,\"couponIds\":[],\"totalAmount\":116500,\"createdFrom\":\"telesale\"}"},"request":{}}
"{\"invoice\":{\"type\":1,\"customerId\":158066,\"isDiscountPrice\":true,\"discount\":0,\"relatedCustomerId\":null,\"details\":null,\"warehouseId\":1,\"notes\":null,\"vat\":0,\"total\":116500,\"shippingFee\":30000,\"shippingFeeX\":12500,\"ecommerceDetails\":[{\"productId\":87,\"key\":87,\"isCombo\":false,\"product\":{\"id\":87,\"name\":\"THẮT LƯNG T208(NÂU)\",\"weight\":990,\"length\":41,\"width\":15,\"height\":9,\"isCombo\":false,\"url\":\"/uploads/lunova.nobi.pro/product/2025-07-22/14.png\",\"sku\":\"T208-NAU\",\"code\":\"T208-NAU\",\"price\":99000,\"unit\":\"Combo\",\"inventoryBefore\":0,\"inventory\":-9074,\"productId\":87,\"priceAvg\":0,\"ecommerceFloorVariationId\":null},\"quantity\":1,\"weight\":990,\"length\":41,\"width\":15,\"height\":9,\"price\":99000,\"discount\":0,\"isDiscountPrice\":true,\"totalAmount\":99000,\"quantityX\":1}],\"insuranceValue\":\"99000.000\"},\"customer\":null,\"transporter\":\"JNT\",\"transporterId\":3,\"trackingCode\":null,\"weight\":990,\"salerId\":10,\"status\":1,\"checkingPolicy\":1,\"customerName\":\"Nguyễn Văn Lương \",\"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\",\"customerPhoneNumber\":\"0393923718\",\"orderAddress\":{\"provinceId\":\"15\",\"districtId\":\"15136\",\"wardId\":\"1513604417\",\"shippingAddress\":\"Thôn An Hòa, Xã An Thịnh, Huyện Văn Yên, Yên Bái\",\"provinceName\":\"Yên Bái\",\"districtName\":\"Huyện Văn Yên\",\"wardName\":\"Xã An Thịnh\"},\"orderExtra\":{\"weight\":990,\"flagsStr\":\"{}\",\"flags\":{}},\"orderFee\":{},\"transporterServiceId\":\"EXPRESS\",\"isReturnPart\":true,\"transportType\":0,\"isFreeShipping\":false,\"isCustomFee\":true,\"couponIds\":[],\"totalAmount\":116500,\"createdFrom\":\"telesale\"}"