This project is read-only.

-1 Failed to deserialize data when calling GetAccountDetails against a paid MailChimp account


Calling the GetAccountDetails Method against a Paid MailChimp account throws a MCException with the message '-1 Failed to deserialize data'. Reason for this is that the MailChimp response contains a section named 'orders' which is empty in case of free account. A paid account will contain an order section like
  [ { order_id: 48141,
       type: 'Addon',
       amount: 10,
       date: '2013-07-04 14:01:40',
       credits_used: 0 } ],
The inner exception contains sayes

---> System.Runtime.Serialization.SerializationException: Invalid enum value 'Addon' cannot be deserialized into type 'MailChimp.Types.Helper+OrderType' ....

I've attached the relevant exception info and the mailchimp response (I've logged the response by using a javascript wrapper of the api) the caused the failure. Hope that helps.

file attachments


denisk1981 wrote Jan 13, 2014 at 11:55 PM


I'll fix it in the next version (coming soon...)

wrote Jan 14, 2014 at 12:01 AM