XiaoFaye / WooCommerce.NET

A .NET Wrapper for WooCommerce/WordPress REST API
MIT License
391 stars 219 forks source link

error deserializing the object of type System.Collections.Generic.List (WooCommerce.NET, Version=0.8.4.0 ) #674

Closed mohamm4d closed 1 year ago

mohamm4d commented 2 years ago

I thought #600 solved the deserializing errors but I get the same error when get all payment gateways . (WooCommerce.NET, Version=0.8.4.0 ) . Please let me know your solution . code :

List pgs = wc.PaymentGateway.GetAll().Result;

Error : System.Runtime.Serialization.SerializationException: There was an error deserializing the object of type System.Collections.Generic.List1[[WooCommerceNET.WooCommerce.v3.PaymentGateway, WooCommerce.NET, Version=0.8.4.0, Culture=neutral, PublicKeyToken=null]]. End element 'value' from namespace '' expected. Found element 'item' from namespace ''. ---> System.Xml.XmlException: End element 'value' from namespace '' expected. Found element 'item' from namespace ''.

sguagni commented 2 years ago

Hi,,I have the same problem.. Have you found any solution/workaround ?

bynifaciy commented 2 years ago

Good day! In Payment methods Settings turn on only Direct bank transfer and Cash on delivery and I get this error too

gregoriusus commented 2 months ago

This issue is still opened

gregoriusus commented 2 months ago

In fact, it is working now :-) I had some old payment gateway plugin. So, if you get this error is probably due to some payment plugin.