We all started somewhere! Share your experience on the Get Advice: Let's Get Started Sweepstakes thread and be entered to win a $100 credit on your Constant Contact account.

Contact create returns different response .. arbitrarily

Occasional Participant

Contact create returns different response .. arbitrarily

I am getting 2 different kinds of responses when I issue Contact-Create command thru API. 


response1: https://gist.github.com/2721886

response2: https://gist.github.com/2721878


The response1 has only one entry for <ContactLists>, whereas response2 has duplicate (2) entries for <ContactLists>. This is causing our side of the service to break. It seems to happen arbitrarily, if I call create few times in a row.


Can somebody explain why the response(s) are different?




I don't have an answer for you straight away, but I've brought your question to the attention of our API Support team at large, and will try to make sure someone follows up with more information as soon as possible.



Mark Coleman
Support Engineer

Hey Shaan,


I've never seen this come up before, so I don't have an immediate answer on what could be causing this. It would be really helpful if you could use RESTClient to make the same calls, in an attempt to receive this bad response, because with this program you can save the request-response as an archive, and we can open it on our end to investigate.


If you aren't able to replicate this using RESTClient, it's possible that the issue may be some sort of improper formatting somewhere inside of your program. If that's the case, you can always send some of your files to webservices@constantcontact.com, and we can do our best to go through it.

Nick Galbraith
Support Engineer

Hi Shaan,


During further testing, we've been able to replicate this on our end. We're currently taking a look into this, sorry for the inconvenience.

Nick Galbraith
Support Engineer
Developer Portal

View API documentation, code samples, get your API key.

Visit Page