When I try and create a new gift card I get the following error, this happens as soon as I click the 'Create Gift Card' button - I dont get to see any form or anything. version: 1.8.1
STACK:
{"@t":"2021-05-27T10:55:24.7958027Z","@mt":"Unhandled controller exception occurred for request '{RequestUrl}'","@l":"Error","@x":"System.ArgumentNullException: Value cannot be null.\r\nParameter name: name\r\n at System.Globalization.CultureInfo.GetCultureInfo(String name)\r\n at Vendr.Core.Models.Amount.RoundValue(Decimal value, String cultureName)\r\n at Vendr.Core.Models.Amount..ctor(Decimal value, Guid currencyId, String cultureName)\r\n at Vendr.Core.Models.Amount..ctor(Decimal value, Guid currencyId)\r\n at Vendr.Core.Models.GiftCardReadOnly.getOriginalAmount()\r\n at Vendr.Web.Models.Mappers.GiftCardMapper.GiftCardEntityToBasicDto(GiftCardReadOnly entity, GiftCardBasicDto dto) in D:\a\1\s\src\Vendr.Web\Models\Mappers\GiftCardMapper.cs:line 25\r\n at Vendr.Web.Models.Mappers.GiftCardMapper.GiftCardEntityToDto(GiftCardReadOnly entity, GiftCardDto dto) in D:\a\1\s\src\Vendr.Web\Models\Mappers\GiftCardMapper.cs:line 53\r\n at Vendr.Web.Models.Mappers.GiftCardMapper.GiftCardEntityToEditDto(GiftCardReadOnly entity, GiftCardEditDto dto) in D:\a\1\s\src\Vendr.Web\Models\Mappers\GiftCardMapper.cs:line 74\r\n at Vendr.Web.Controllers.GiftCardController.CreateGiftCard(Guid storeId) in D:\a\1\s\src\Vendr.Web\Controllers\GiftCardController.cs:line 111\r\n at lambdamethod(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>cDisplayClass6_2.2(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.
Error creating Giftcard
When I try and create a new gift card I get the following error, this happens as soon as I click the 'Create Gift Card' button - I dont get to see any form or anything. version: 1.8.1
STACK:
{"@t":"2021-05-27T10:55:24.7958027Z","@mt":"Unhandled controller exception occurred for request '{RequestUrl}'","@l":"Error","@x":"System.ArgumentNullException: Value cannot be null.\r\nParameter name: name\r\n at System.Globalization.CultureInfo.GetCultureInfo(String name)\r\n at Vendr.Core.Models.Amount.RoundValue(Decimal value, String cultureName)\r\n at Vendr.Core.Models.Amount..ctor(Decimal value, Guid currencyId, String cultureName)\r\n at Vendr.Core.Models.Amount..ctor(Decimal value, Guid currencyId)\r\n at Vendr.Core.Models.GiftCardReadOnly.getOriginalAmount()\r\n at Vendr.Web.Models.Mappers.GiftCardMapper.GiftCardEntityToBasicDto(GiftCardReadOnly entity, GiftCardBasicDto dto) in D:\a\1\s\src\Vendr.Web\Models\Mappers\GiftCardMapper.cs:line 25\r\n at Vendr.Web.Models.Mappers.GiftCardMapper.GiftCardEntityToDto(GiftCardReadOnly entity, GiftCardDto dto) in D:\a\1\s\src\Vendr.Web\Models\Mappers\GiftCardMapper.cs:line 53\r\n at Vendr.Web.Models.Mappers.GiftCardMapper.GiftCardEntityToEditDto(GiftCardReadOnly entity, GiftCardEditDto dto) in D:\a\1\s\src\Vendr.Web\Models\Mappers\GiftCardMapper.cs:line 74\r\n at Vendr.Web.Controllers.GiftCardController.CreateGiftCard(Guid storeId) in D:\a\1\s\src\Vendr.Web\Controllers\GiftCardController.cs:line 111\r\n at lambdamethod(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>cDisplayClass6_2.2(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.
Hi Jamie,
This was fixed in 1.8.2, upgrading should fix this https://vendr.net/docs/core/changelog/#v182
Matt
Oh wow - I thought I was on the latest!
Thanks Matt
It was released yesterday 😁
Matt
That will explain it! That solves my problem :)
is working on a reply...