Virto Commerce Frontend - B2B SPA is a fresh look on the field of eCommerce solutions. This is a place where common B2B and B2C scenarios are combined with the most bleeding edge technologies to deliver blazing fast and fully functional solution. It implements common business use-cases needed for a vast majority of projects we build.
{"errors":[{"message":"GraphQL.Execution.UnhandledError: Error trying to resolve field 'cart'.\r\n ---> System.ArgumentNullException: Value cannot be null. (Parameter 'principal')\r\n at System.Security.Claims.PrincipalExtensions.FindFirstValue(ClaimsPrincipal principal, String claimType)\r\n at VirtoCommerce.Platform.Security.Authorization.PermissionAuthorizationHandlerBase`1.HandleRequirementAsync(AuthorizationHandlerContext context, TRequirement requirement) in E:\\VirtoCommerce\\5.Source\\vc-platform-3.204.0\\src\\VirtoCommerce.Platform.Security\\Authorization\\PermissionAuthorizationHandlerBase.cs:line 15\r\n at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\r\n at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\r\n at VirtoCommerce.XPurchase.Schemas.PurchaseSchema.CheckAccessToCartAsync(IResolveFieldContext context, ShoppingCart cart) in /home/runner/work/vc-module-experience-api/vc-module-experience-api/src/XPurchase/VirtoCommerce.XPurchase/Schemas/PurchaseSchema.cs:line 1230\r\n at VirtoCommerce.XPurchase.Schemas.PurchaseSchema.<Build>b__6_37(IResolveFieldContext context) in /home/runner/work/vc-module-experience-api/vc-module-experience-api/src/XPurchase/VirtoCommerce.XPurchase/Schemas/PurchaseSchema.cs:line 85\r\n at GraphQL.Execution.ExecutionStrategy.ExecuteNodeAsync(ExecutionContext context, ExecutionNode node) in /_/src/GraphQL/Execution/ExecutionStrategy.cs:line 429\r\n --- End of inner exception stack trace ---","locations":[{"line":2,"column":3}],"path":["cart"],"extensions":{"code":"ARGUMENT_NULL","codes":["ARGUMENT_NULL"]}}],"data":{"cart":null}}
http://localhost:2083/xapi/graphql
response