Error when adding interest group
I am using Mailchimp.Net in an asp.net C# web application.
I am trying to add a interest group using following code:
MailChimp.MailChimpManager mailChimpManager = new MailChimp.MailChimpManager("xxxxxxxxxxxx-us9"); if (Session["listId"] != null) { string listId = Session["listId"].ToString();
List<InterestGrouping.InnerGroup> innerGroup = new List<InterestGrouping.InnerGroup>();
innerGroup.Add(new InterestGrouping.InnerGroup() { Name = "Students", Bit = 1, DisplayOrder = 1, Subscribers = 0 });
mailChimpManager.AddListInterestGrouping(listId, this.textBoxNewGroup.Text, "radio", innerGroup);
}
but AddListInterestGrouping method is giving following exception:
MailChimp.Errors.MailChimpAPIException: A backend database error has occurred. Please try again later or report this issue.
Internal excpetion is:
The remote server returned an error: (500) Internal Server Error.
Kindly let me know what can be done to fix this issue.
Can you verify if the json that is send is correct and catch the resulting json using fiddler? Please post the json for request and respone. ps. create a copy/paste failing test for the test project would help..
Unfortunately fiddler does not show json format request/response for any method being called.