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.

API and 500 Errors

cbaugh
Regular 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
DaveBerard
Moderator

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
cbaugh
Regular Participant

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