500 Error

laurent
Regular Participant

500 Error

Hi, I'm getting 500 Internal Server Error.

What's wrong with this code?


<entry xmlns="http://www.w3.org/2005/Atom">

<id>data:,</id>

<title />

<author />

<updated>2010-09-14T15:13:59Z</updated>

<content type="application/vnd.ctct+xml">

<ContactList xmlns="http://ws.constantcontact.com/ns/1.0/">

<OptInDefault>false</OptInDefault>

<Name>A New List</Name>

<SortOrder>99</SortOrder>

</ContactList>

</content>

</entry>

 

4 REPLIES 4
jhernandez1
Regular Participant

I think you need to fill in something for title and author. That's the only thing I see different from my code.

laurent
Regular Participant

I fill in something for title and author but I still to get 500 internal error.


<entry xmlns="http://www.w3.org/2005/Atom">

<id>data:,</id>

<title>this is a title</title>

<author>Im the author</author>

<updated>2010-09-14T15:46:25Z</updated>

<content type="application/vnd.ctct+xml">

<ContactList xmlns="http://ws.constantcontact.com/ns/1.0/">

<OptInDefault>false</OptInDefault>

<Name>A New List</Name>

<SortOrder>99</SortOrder>

</ContactList>

</content>

</entry>

 

bsoder
Employee

Hello,



The XML that you posted to me looks fine and should work. I tested it on my account and I was able to add a list with it. Please just verify that you are POSTing it to https://api.constantcontact.com/ws/customers/(YOUR USERNAME)/lists with the valid username, password and API key.



We do not see any issues on our servers, so try posting it again as well and see if it is working now.



Regards,

Benjamin Soder
NOC Analyst
Constant Contact
laurent
Regular Participant

Hi Ben,


I was posting to a bad URL https://api.constantcontact.com/ws/customers/(YOUR USERNAME)/


TY for help


 

Developer Portal

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

Visit Page