Copied to clipboard

Flag this post as spam?

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


  • Jamie Townsend 62 posts 286 karma points c-trib
    May 27, 2021 @ 11:00
    Jamie Townsend
    0

    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

    enter image description here

    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.

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    May 27, 2021 @ 11:04
    Matt Brailsford
    100

    Hi Jamie,

    This was fixed in 1.8.2, upgrading should fix this https://vendr.net/docs/core/changelog/#v182

    Matt

  • Jamie Townsend 62 posts 286 karma points c-trib
    May 27, 2021 @ 11:05
    Jamie Townsend
    0

    Oh wow - I thought I was on the latest!

    Thanks Matt

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    May 27, 2021 @ 11:08
    Matt Brailsford
    0

    It was released yesterday 😁

    Matt

  • Jamie Townsend 62 posts 286 karma points c-trib
    May 27, 2021 @ 11:15
    Jamie Townsend
    1

    That will explain it! That solves my problem :)

Please Sign in or register to post replies

Write your reply to:

Draft