-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
Which component is this issue related to?
Umbraco Commerce (Core)
Which Umbraco Commerce version are you using? (Please write the exact version, example: 10.1.0)
16.3.1
Bug summary
After upgrading to v16 of Umbraco and Commerce, some users are experiencing an error when we try to get or create their current order.
Below is the stack trace we're seeing in the logs:
System.NullReferenceException: Object reference not set to an instance of an object.
at Umbraco.Commerce.Infrastructure.Resiliency.PollyExecutionStrategyBase.ExecuteAsync[TResult](Func`2 operation, Func`2 verifySucceeded, CancellationToken cancellationToken)
at Umbraco.Commerce.Core.Services.OrderService.PerformGetStateAsync(Guid id)
at Umbraco.Commerce.Core.Cache.DefaultEntityStatePolicyCache`2.GetAsync(TId id, Func`2 performGetAsync, Func`2 performGetAllAsync)
at Umbraco.Commerce.Core.Services.OrderService.GetOrderAsync(Guid id)
at Umbraco.Commerce.Core.Session.SessionManager.<>c__DisplayClass13_0.<<GetCurrentOrderAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Umbraco.Commerce.Core.Session.SessionManager.WithSessionStoreAsync[T](Guid storeId, Func`2 action)
at Umbraco.Commerce.Core.Session.SessionManager.GetCurrentOrderAsync(Guid storeId)
Specifics
No response
Steps to reproduce
It's hard to reproduce this as it only happens to some users. We're trying to obtain more information to help identify the conditions when this happens.
Expected result / actual result
No response
Dependencies
No response