I'm currently setting up a new site and have run into a problem where I get a 500 server error when using the html api. we are using TC v2.1.2 but it also happens with 2.1.1 on Umbraco v6.0.5 The form used to submit is
at Umbraco.Web.BaseRest.RestExtensionMethodInfo.Invoke(String[] parameters)
INNEREXCEPTION:
System.ArgumentException: The model didn't have a store id associated with it - remember to add the Tea Commerce store picker to your Umbraco content tree
at TeaCommerce.Umbraco.Configuration.InformationExtractors.XmlNodeProductInformationExtractor.GetStoreId(XPathNavigator model, Boolean useCachedInformation)
at TeaCommerce.Umbraco.Configuration.InformationExtractors.XmlNodeProductInformationExtractor.HasAccess(Int64 storeId, XPathNavigator model, Boolean useCachedInformation)
at TeaCommerce.Api.Web.FormPostHandler.AddOrUpdateOrderLine(Int64 storeId, IDictionary`2 formFields, IDictionary`2 settings)
500 server error on basket add
Hello
I'm currently setting up a new site and have run into a problem where I get a 500 server error when using the html api. we are using TC v2.1.2 but it also happens with 2.1.1 on Umbraco v6.0.5 The form used to submit is
(this was copied from a working site)
The error is shown below
STACKTRACE:
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Umbraco.Web.BaseRest.RestExtensionMethodInfo.Invoke(String[] parameters)
INNEREXCEPTION:
System.ArgumentException: The model didn't have a store id associated with it - remember to add the Tea Commerce store picker to your Umbraco content tree
at TeaCommerce.Umbraco.Configuration.InformationExtractors.XmlNodeProductInformationExtractor.GetStoreId(XPathNavigator model, Boolean useCachedInformation)
at TeaCommerce.Umbraco.Configuration.InformationExtractors.XmlNodeProductInformationExtractor.HasAccess(Int64 storeId, XPathNavigator model, Boolean useCachedInformation)
at TeaCommerce.Api.Web.FormPostHandler.AddOrUpdateOrderLine(Int64 storeId, IDictionary`2 formFields, IDictionary`2 settings)
at TeaCommerce.Api.Web.FormPostHandler.FormPost()
Any help would be appreciated
Thanks
Please ignore, I re-read the error message found the problem and can't delete the topic for some reason.
I'm running into the same issue, any solution?
Hi Laurie
Great you solved it :)
Kind regards
Anders
Hi laurie,
Would you like to share how you solved the issue?
Bob
is working on a reply...