Developer forum

Forum » Development » Patch Cart timeout headless

Patch Cart timeout headless

Theodor Perrier
Reply

Hi DW, i would like some help with this error.

endpoint :/dwapi/ecommerce/carts/{secret}

StackTrace:

"Message": "An error has occurred.",
  "ExceptionMessage": "The operation has timed out.",
  "ExceptionType": "System.TimeoutException",
  "StackTrace": "   at Dynamicweb.Ecommerce.Orders.OrderService.Save(Order order, Boolean saveOldVersion)\r\n   at Dynamicweb.Ecommerce.WebAPI.Controllers.CartsController.UpdateCart(String secret, OrderViewModel cartModel)\r\n   at lambda_method(Closure , Object , Object[] )\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()"

Replies

 
Nicolai Pedersen
Reply

Can you shed some light over the context of when this happens?

How often do you call it? How often does this happen - always or just sometimes?

What is the script timeout of this site?

 
Theodor Perrier
Reply

Hi Nicolai.

It happens when i make a request in the swagger endpoint of the headless version.

the current timeout is set to 14400, but the error is thrown within a couple of minutes

this is the body i send with the patch request

{

"VoucherCode": "xxxxxx"

}

 
Nicolai Pedersen
Reply

Hi Theodor

Thanks - we will try to reproduce internally and see what happens and get back.

Do you happen to be live integrated? 

 
Theodor Perrier
Reply

Hi Nicolai.

Thanks for the quick response.

Yes, we do have a live integration, but the exception happens before our custom orderhandler is hit.

 

You must be logged in to post in the forum