Any changes to GetCustomer?

markin's Avatar

markin

17 May, 2013 05:13 PM

When we create a new user on our web app, we forward the request to cheddargetter with the guid of our user in the customer code area.

Now when we create a user we get an Input String in Incorrect Format Exception when that user tries to login, What we normally do is that that guid and pass it to GetCustomer.

[FormatException: Input string was not in a correct format.]
   Confer.CheddarGetter.CheddarGetter.GetCustomer(String customerCode) +390
   MerchantTribeStore.Areas.account.Controllers.OrderHistoryController.getCustomerNameandEmail() +127
   MerchantTribeStore.Areas.account.Controllers.OrderHistoryController.Index() +1528
   lambda_method(Closure , ControllerBase , Object[] ) +79
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +260
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +411
   System.Web.Mvc.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() +120
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +637
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +637
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +637
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +280
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +728
   System.Web.Mvc.Controller.ExecuteCore() +162
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +159
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +62
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +15
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +1612
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +465

  1. Support Staff 1 Posted by Marc Guyer on 17 May, 2013 09:08 PM

    Marc Guyer's Avatar

    Hi Matthew -- That error stack is not something that CG generates and it doesn't appear to show any detail related to the CG API. I also do not see any errors in your log or Stripe activity. Do you have any additional information? Is the something you can consistently replicate in your app?

  2. 2 Posted by markin on 21 May, 2013 05:54 PM

    markin's Avatar

    We're using the Confer Cheddargetter C# library, which is what was
    throwing the incorrect string format exception.
    We just added an Unlimited Plan, so we had items set to 99999999.9 for the
    quantity included.

    I just had time to start debugging and what was happening was that the
    Confer library was expecting an int for the Quantity Included but was
    instead getting a double.

  3. Support Staff 3 Posted by Marc Guyer on 21 May, 2013 07:06 PM

    Marc Guyer's Avatar

    I see. Are you familiar with git/github and contributing to projects? It would be great if the other users of that wrapper could benefit by your improvements!

    https://help.github.com/articles/fork-a-repo

  4. 4 Posted by markin on 21 May, 2013 07:18 PM

    markin's Avatar
  5. 5 Posted by Dean on 21 May, 2013 07:48 PM

    Dean's Avatar

    Thanks a ton for your contribution. The CheddarGetter world salutes you!

  6. Dean closed this discussion on 21 May, 2013 07:48 PM.

Discussions are closed to public comments.
If you need help with Cheddar please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

28 Mar, 2024 10:45 PM
24 Jan, 2024 08:33 AM
11 Jan, 2024 07:13 AM
30 Nov, 2023 02:07 AM
22 Nov, 2023 08:41 AM