Copied to clipboard

Flag this post as spam?

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


  • Gordon Saxby 1461 posts 1883 karma points
    May 16, 2018 @ 09:18
    Gordon Saxby
    0

    Error with FormPost.aspx

    I am getting this error when submitting name & address info to FormPost.aspx:

        2018-05-16 10:09:48,854 [P5368/D2/T98] ERROR TeaCommerce.Umbraco.Configuration.Infrastructure.Logging.LoggingProvider - Tea Commerce FormPost error
     --- Form data:
     -- storeId = "1"
     -- returnUrl = "https://website.net/en/store/basket/shippingpayment/"
     -- AddOrUpdateOrderProperties = "properties : properties"
     -- SetCurrentPaymentCountry = "countryId"
     -- SetCurrentShippingCountry = "countryId : countryIdShipping"
     -- SetCurrentPaymentCountryRegion = "countryRegionId : countryRegionId"
     -- SetCurrentShippingCountryRegion = "countryRegionId : countryRegionIdShipping"
     -- properties = "company : company, firstName : firstName, lastName : lastName, streetAddress : streetAddress, zipCode : zipCode, city : city, phone : phone, email : email, shipping_company : shipping_company, shipping_firstName : shipping_firstName, shipping_lastName : shipping_lastName, shipping_streetAddress : shipping_streetAddress, shipping_zipCode : shipping_zipCode, shipping_city : shipping_city, comments : comments"
     -- firstName = "First"
     -- lastName = "Last"
     -- search = ""
     -- company = "House"
     -- streetAddress = "Street"
     -- zipCode = "Zip"
     -- city = "City"
     -- email = "[email protected]"
     -- phone = "07971661995"
     -- countryId = "3"
     -- shipping_firstName = ""
     -- shipping_lastName = ""
     -- searchShipping = ""
     -- shipping_company = ""
     -- shipping_streetAddress = ""
     -- shipping_zipCode = ""
     -- shipping_city = ""
     -- countryIdShipping = "3"
     -- comments = "Testing"
     - Exception: System.Threading.ThreadAbortException: Thread was being aborted.
       at System.Threading.Thread.AbortInternal()
       at System.Threading.Thread.Abort(Object stateInfo)
       at System.Web.HttpResponse.AbortCurrentThread()
       at TeaCommerce.Api.Web.FormPostHandler.FormPost()
    System.Threading.ThreadAbortException: Thread was being aborted.
       at System.Threading.Thread.AbortInternal()
       at System.Threading.Thread.Abort(Object stateInfo)
       at System.Web.HttpResponse.AbortCurrentThread()
       at TeaCommerce.Api.Web.FormPostHandler.FormPost()
    

    Any help would be much appreciated!

    Umbraco v7.4.2, TeaCommerce - 3.1.0 (I think, based on DLL version!)

  • Brian Lyk Larsen 19 posts 274 karma points
    May 16, 2018 @ 12:24
    Brian Lyk Larsen
    0

    Hi Gordon,

    countryRegionId is referenced by SetCurrentPaymentCountryRegion but it is not present in your form data.

    Same thing for countryRegionIdShipping and SetCurrentShippingCountryRegion.

    Just a wild guess from my part. I'm not sure it causes an exception :)

  • Gordon Saxby 1461 posts 1883 karma points
    May 17, 2018 @ 12:05
    Gordon Saxby
    0

    I compared our "step 2" template to the one in the starter kit - https://github.com/TeaCommerce/Starter-kit-for-Umbraco/blob/master/Source/Website/Views/CartStep2.cshtml

    Both have code to output region IDs - assuming there are any regions (line 172). Our form does not output any region IDs!? I can't see where they would be configured either.

Please Sign in or register to post replies

Write your reply to:

Draft