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.

API and 500 Errors

Highlighted
Participant

API and 500 Errors

(This is a new post for an old topic that has been previously visited and closed. http://developer.constantcontact.com/node/563 )


I have logins that I can login with interactively that will fail with the api.  These logins fail with a 500 and provide no further information. I have other logins that I run through this exact same code that perform flawlessly. Any thoughts or suggestions as to why some logins work and some don't? (I'm doing a post to start the process to pull down custom fields when this happens.)


I'll be glad to provid login information, what I'm posting, etc.


Thanks,


Craig Baugh

2 REPLIES 2
Highlighted
Moderator

Hi Craig,   I'm sorry to hear

Hi Craig,


 


I'm sorry to hear you're still seeing the 500 errors.  Is this still using the Bulk Activity Posting a new activity and than using a GET on the received URI to check the status periodically?

Dave Berard
Senior Product Manager, Constant Contact
Highlighted
Participant

It's On the Initial Post

Both of these below are an example of the initial post that I'm making to this url:


https://api.constantcontact.com/ws/customers/acsdevtestaccount/activities


(Whether I leave the api key in or remove it doesn't seem to matter.)


 


activityType=EXPORT_CONTACTS&fileType=CSV&sortBy=DATE_DESC&columns=CUSTOM+FIELD+1&columns=CUSTOM+FIELD+2&columns=CUSTOM+FIELD+3&columns=CUSTOM+FIELD+4&columns=CUSTOM+FIELD+5&columns=CUSTOM+FIELD+6&columns=CUSTOM+FIELD+7&columns=CUSTOM+FIELD+8&columns=CUSTOM+FIELD+9&columns=CUSTOM+FIELD+10&columns=CUSTOM+FIELD+11&columns=CUSTOM+FIELD+12&columns=CUSTOM+FIELD+13&columns=CUSTOM+FIELD+14&columns=CUSTOM+FIELD+15&listId=http%3a%2f%2fapi.constantcontact.com%2fws%2fcustomers%apikeyleftin%acsdevtestaccount%2Flists%2F1


 


activityType=EXPORT_CONTACTS&fileType=CSV&sortBy=DATE_DESC&columns=CUSTOM+FIELD+1&columns=CUSTOM+FIELD+2&columns=CUSTOM+FIELD+3&columns=CUSTOM+FIELD+4&columns=CUSTOM+FIELD+5&columns=CUSTOM+FIELD+6&columns=CUSTOM+FIELD+7&columns=CUSTOM+FIELD+8&columns=CUSTOM+FIELD+9&columns=CUSTOM+FIELD+10&columns=CUSTOM+FIELD+11&columns=CUSTOM+FIELD+12&columns=CUSTOM+FIELD+13&columns=CUSTOM+FIELD+14&columns=CUSTOM+FIELD+15&listId=http%3a%2f%2fapi.constantcontact.com%2fws%2fcustomers%acsdevtestaccount%2Flists%2F1


 


And in this case both of these will work.


 


The problem is that I've got several CC customer accounts that are failing with a 500 when run through this exact same code on this initial post. I am obviously updating all of the urls with the account name, etc. Is there something on your end you can do to monitor these requests and see why they are failing ?


Thanks,


Craig

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