Umbraco.Commerce.Issues icon indicating copy to clipboard operation
Umbraco.Commerce.Issues copied to clipboard

Order List is throwing error

Open philipdanielhayton opened this issue 1 year ago • 4 comments

Hi Matt,

There is an issue I've ran into on two separate projects that causes the Order Listing screen to fail whenever I try to access it. Unfortunately I'm not entirely sure what causes it, I realize this is not ideal for you to debug with so if there is anything further I can provide please let me now. Here's what I know for sure:

  • It has happened on both Umbraco 10 and 11, with Vendr 3.0.9 and 3.0.11
  • It only affects individual stores, other stores on the same site work fine
  • Cart listing screen still works as expected

I'm guessing one of the orders has somehow ended up in an invalid state. I've had a quick scan through the orders table and nothing is jumping out at me. Is there anything in the soure code that could provide some clues for me to continue digging?

Value cannot be null. (Parameter 'type')

at Vendr.Infrastructure.Resiliency.PollyExecutionStrategyBase.Execute[TResult](Func`1 operation, Func`1 verifySucceeded)
   at Vendr.Core.VendrUnitOfWorkProvider.Execute[T](Boolean autoComplete, Func`2 action)
   at Vendr.Core.Services.OrderService.SearchOrders(IQuerySpecification`1 query, ISortSpecification`1 sort, Int64 currentPage, Int64 itemsPerPage)
   at Vendr.Core.Services.OrderService.SearchOrders(Func`2 query, Int64 currentPage, Int64 itemsPerPage)
   at Vendr.Umbraco.Web.Controllers.VendrOrderController.SearchOrders(OrderSearchDto model)
   at lambda_method2102(Closure , Object , Object[] )
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)

philipdanielhayton avatar Apr 27 '23 13:04 philipdanielhayton