A customer reported, that he could not accomplish his order because of an error. I am getting this error in the log:
{"@t":"2021-06-19T09:27:52.5002581Z","@mt":"An unhandled
exception occurred","@l":"Error","@x":"System.InvalidOperationException:
No order line found with the given ID\r\n at Vendr.Core.Models.Order.WithOrderLine(Guid orderLineId)\r\n
at CampusShop.Core.Controllers.Surface.CartSurfaceController.UpdateCart(UpdateCartDto postModel) in
D:\\...\\Controllers\\Surface\\CartSurfac eController.cs:line 77\r\n
{"@t":"2021-06-19T18:46:17.5476189Z","@mt":"An unhandled exception occurred","@l":"Error","@x":"System.InvalidOperationException: Sequence contains no elements\r\n at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)\r\n at ASP._Page_App_Plugins_VendrCheckout_Views_VendrCheckoutShippingMethodPage_cshtml.Execute() in C:\\...\\httpdocs\\App_Plugins\\VendrCheckout\\Views\\VendrCheckoutShippingMethodPage.cshtml:line 16\r\n
Ok, well it sounds like it's trying to update an order line that doesn't exist in the order.
Unfortunately I can't tell from what you've posted why that would be. The errors are only telling you that it's trying to modify an order line that isn't there.
You'll need to try and debug a little deeper as to why it's expected to be there, but it's actually not 🤔
unhandled exception occurred
Hi Matt,
A customer reported, that he could not accomplish his order because of an error. I am getting this error in the log:
Can you imagine what is wrong?
Thanks,
Edgar
Hi Edgar,
Not without seeing what is happening in your CartSurfaceController at line 77 😁
Matt
Hi Mattt
of course. I'm always following the Tutorial from Paul Seal (codeshare.co.uk):
Thanks
In the log I also often get this error:
Ok, well it sounds like it's trying to update an order line that doesn't exist in the order.
Unfortunately I can't tell from what you've posted why that would be. The errors are only telling you that it's trying to modify an order line that isn't there.
You'll need to try and debug a little deeper as to why it's expected to be there, but it's actually not 🤔
Matt
is working on a reply...