WooCommerce.NET icon indicating copy to clipboard operation
WooCommerce.NET copied to clipboard

Order.Get, SerializationException

Open nvsoares opened this issue 3 years ago • 3 comments

Hello. When I call the method Orders.Get to obtain an order, I am getting the following exception on the deserialization:

System.Runtime.Serialization.SerializationException:

'There was an error deserializing the object of type WooCommerceNET.WooCommerce.v3.Order. End element 'display_value' from namespace '' expected. Found element 'woocommerce_method_instance_id' from namespace ''.'

Attached file with response json string: 54103.txt

Note: With v0.8.2 it was working just fine.

Can you help?

nvsoares avatar Jun 09 '21 14:06 nvsoares

Hi this is a duplicate of open issue orderlines and couponlines returning JSON array not string,

See #618

timeframederek avatar Jun 10 '21 01:06 timeframederek

This was fixed with PR #600 You'll have to get the source and build it.

firestormza avatar Jun 14 '21 09:06 firestormza

Hi, is the fix scheduled for release via the nuget package any time soon?

Gareth-Lee-PBH avatar Jun 17 '21 16:06 Gareth-Lee-PBH