I am working with the CC API and have it working fine for adding and updating contacts. An interesting scenario has emerged though for a specific email address that I am testing with. When I execute a request to search for the email address, I get a 500 Internal Server Error. Here is the log ("MyUser" and "MyEmail" are substitutes for the actual values):
|webdev.webserver.exe||GET||api.constantcontact.com||https://api.constantcontact.com/ws/customers/MyUser/contacts?email=MyEmail||text/plain||500 Internal Server Error|
Your API states that this means the email does not exist in my client's lists. However, when I try to add a new contact with the same email address, I get a 409 Conflict response:
This is the XML I am using for the insert:
<ContactList id="https://api.constantcontact.com/ws/customers/MyUser/lists/5" />
My code is working fine for searching, retrieving, inserting and updating contacts with any email other than the one in question. The problematic email belongs to me and might have been subscribed to the client's list in the past (I am not sure). However, when I log in to my client's CC panel and search for it, it does not show up. What is the explanation for this scenario?
I would like to help you resolve this issue; however, there should not be any reason that you are getting a 409 error other than the contact already existing in the account. Could you let me know your username, as well as the email address that is causing this issue? I am going to look into this and find out why this is happening to you.
If you do not want to put this information on the forums, please feel free to email it to the Webservices Support Team.