Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Giampiero D'Agostino 14 posts 106 karma points
    Aug 20, 2020 @ 04:15
    Giampiero D'Agostino
    0

    Error when I click on any order in the backend

    Hello everyone! I'm on my first project with vendr and after I implemented the whole checkout and I managed to create an order, I get an error when I click on that order in the backend:

    Unhandled controller exception occurred for request '"https://localhost:44341/umbraco/backoffice/vendr/Store/GetStoreOrderEditorConfig?storeId=8e976840-6060-4da7-a882-d51985159ffc"'

    Does anybody know how I could fix this? Cheers, Giampiero

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Aug 20, 2020 @ 07:50
    Matt Brailsford
    1

    Hey Giampiero

    Welcome to the Vendr community 👋🏻

    It sounds like it might be having a problem loading the order editor config file. I would check 3 things initially.

    1) Double check your store settings and make sure the path to the order editor config file is set and is set to a valid path.

    2) Make sure read permissions are set on your order editor config file such that .NET / the IIS worker process is allowed read access to it.

    and 3) If you’ve made and changes to the order editor config file, just double check that it is all valid JSON and that it isn’t malformed in any way.

    Hopefully one of those will sort this issue out for you.

    Matt

  • Giampiero D'Agostino 14 posts 106 karma points
    Aug 20, 2020 @ 12:57
    Giampiero D'Agostino
    0

    Hey Matt thank you for replying so quickly! Unfortunately I didn't manage to fix the issue.

    Note: when I copy and paste in this forum app_plugins turns into appplugins but I digited it correctly :)

    1) The path is triple checked, I can access to https://localhost:44341/appplugins/vendr/config/order.editor.config.js from the browser, and it's set to ~/appplugins/vendr/config/order.editor.config.js

    2) I checked the permissions but everything seems to be as expected. Plus I can see the orders in your solution Vendr.DemoStore with the same visual studio, from the same C://src/... where I just put all my projects and I don't get the error in your solution. I can see all the orders.

    3) I copied and pasted the js files from your blendid.order.editor.config.js but I still get the same error.

    I'm gonna paste the whole error stack so maybe that might help..

    Exception

    System.NullReferenceException: Object reference not set to an instance of an object.

    at Umbraco.Web.PublishedCache.PublishedCacheBase.<>cDisplayClass29_0.1(IPublishedContent x) in D:\a\1\s\src\Umbraco.Web\PublishedCache\PublishedCacheBase.cs:line 101

    at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()

    at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source, Func2 predicate)

    at Vendr.Checkout.Web.Events.Notification.Handlers.VendrCheckoutOrderEditorConfigParsingNotificationHandler.Handle(OrderEditorConfigParsingNotification evt)

    at Vendr.Core.Events.Notification.NotificationEventHandlerBase`1.Vendr.Core.Events.IEventHandler.Handle(IEvent evt)

    at Vendr.Core.Events.InProcEventDispatcher.Dispatch[T](IEnumerable`1 handlers, T evt)

    at Vendr.Core.Events.EventBus.Dispatch[T](T evt)

    at Vendr.Web.Controllers.StoreController.GetStoreOrderEditorConfig(Guid storeId)

    at lambda_method(Closure , Object , Object[] )

    at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>cDisplayClass6_2.2(Object instance, Object[] methodParameters)

    at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)

    at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)

    --- End of stack trace from previous location where exception was thrown ---

    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

    at System.Web.Http.Controllers.ApiControllerActionInvoker.

    --- End of stack trace from previous location where exception was thrown ---

    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

    at System.Web.Http.Filters.ActionFilterAttribute.

    --- End of stack trace from previous location where exception was thrown ---

    at System.Web.Http.Filters.ActionFilterAttribute.

    --- End of stack trace from previous location where exception was thrown ---

    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

    at System.Web.Http.Filters.ActionFilterAttribute.

    --- End of stack trace from previous location where exception was thrown ---

    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

    at System.Web.Http.Filters.ActionFilterAttribute.

    --- End of stack trace from previous location where exception was thrown ---

    at System.Web.Http.Filters.ActionFilterAttribute.

    --- End of stack trace from previous location where exception was thrown ---

    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

    at System.Web.Http.Filters.ActionFilterAttribute.

    --- End of stack trace from previous location where exception was thrown ---

    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

    at System.Web.Http.Filters.ActionFilterAttribute.

    --- End of stack trace from previous location where exception was thrown ---

    at System.Web.Http.Filters.ActionFilterAttribute.

    --- End of stack trace from previous location where exception was thrown ---

    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

    at System.Web.Http.Filters.ActionFilterAttribute.

    --- End of stack trace from previous location where exception was thrown ---

    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

    at System.Web.Http.Filters.ActionFilterAttribute.

    --- End of stack trace from previous location where exception was thrown ---

    at System.Web.Http.Filters.ActionFilterAttribute.

    --- End of stack trace from previous location where exception was thrown ---

    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

    at System.Web.Http.Filters.ActionFilterAttribute.

    --- End of stack trace from previous location where exception was thrown ---

    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

    at System.Web.Http.Filters.ActionFilterAttribute.

    --- End of stack trace from previous location where exception was thrown ---

    at System.Web.Http.Filters.ActionFilterAttribute.

    --- End of stack trace from previous location where exception was thrown ---

    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

    at System.Web.Http.Filters.ActionFilterAttribute.

    --- End of stack trace from previous location where exception was thrown ---

    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

    at System.Web.Http.Controllers.ActionFilterResult.

    --- End of stack trace from previous location where exception was thrown ---

    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

    at System.Web.Http.Filters.AuthorizationFilterAttribute.

    --- End of stack trace from previous location where exception was thrown ---

    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

    at System.Web.Http.Filters.AuthorizationFilterAttribute.

    --- End of stack trace from previous location where exception was thrown ---

    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

    at System.Web.Http.Filters.AuthorizationFilterAttribute.

    --- End of stack trace from previous location where exception was thrown ---

    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

    at System.Web.Http.Controllers.ExceptionFilterResult.

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Aug 20, 2020 @ 13:27
    Matt Brailsford
    1

    Ahh, ok, so you are using Vendr.Checkout too and it's this that is erroring.

    So, it looks like your error is stemming from here https://github.com/vendrhub/vendr-checkout/blob/dev/src/Vendr.Checkout/Web/Events/Notification/Handlers/VendrCheckoutOrderEditorConfigParsingNotificationHandler.cs#L18

    So my guess would be that maybe your checkout pages aren't published, or they are setup wrong and maybe you don't have a store picker defined on your root not.

    Give those a try and see if they help

    Matt

  • Giampiero D'Agostino 14 posts 106 karma points
    Aug 21, 2020 @ 00:06
    Giampiero D'Agostino
    100

    Thank you so much for your help Matt! I renamed the document type CheckoutPage to vendrCheckoutCheckoutPage and I can now see the invoices :-) Have a great day!

    Giampiero

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Aug 21, 2020 @ 06:49
    Matt Brailsford
    0

    Fantastic! Glad you were able to get it all to work.

    /Matt

Please Sign in or register to post replies

Write your reply to:

Draft