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

Error when adding interest group

Open sdeep-dev opened this issue 11 years ago • 2 comments

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.

sdeep-dev avatar Oct 31 '14 12:10 sdeep-dev

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..

mdissel avatar Oct 31 '14 12:10 mdissel

Unfortunately fiddler does not show json format request/response for any method being called.

sdeep-dev avatar Oct 31 '14 14:10 sdeep-dev