The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

500 Error

Highlighted
Occasional 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
Highlighted
Occasional Advisor

I think you need to fill in

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

Highlighted
Occasional Participant

I fill in something for title

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>

 

Highlighted
Employee

posting a list

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
Highlighted
Occasional Participant

Hi Ben, I was posting to a

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

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured