404 Error When Using C# .NET API

kris
Regular Participant

404 Error When Using C# .NET API

Hi, we have just started to receive 404 server response when using the API.


The URL that triggers the 404 response is https://api.constantcontact.com/ws/customers/username/lists/


Where the user name is the valid username fro the account.


Did something change in the API specification?


Thanks

8 REPLIES 8
DaveBerard
Moderator

The 404 error is due to the ending / at the end of your URI.  There is no lists service document so that resource would not be found.  By removing the ending /, you should instead receive the first 50 lists in your account.

Dave Berard
Senior Product Manager, Constant Contact
kris
Regular Participant

Even without the ending / I still get 404 response.


Our API integration has worked fine for the last few months and just started throwing 404 errors and we have not updated anything in days. That tells me the REST has changed.


Any other ideas?


Thanks

kris
Regular Participant

Here is update if it will help find the problems.


I have downloaded the latest example from http://developer.constantcontact.com/sites/default/files/NET_ASP%20Upload%20Forms_1.zip


Updated the APIKey, username, password as the ones I use and know they are valid since I use them to login all the time.


I get 404 error in the sample application as well.


Thanks

kris
Regular Participant

OK, I guess somehow the API magicly fixed itself. Once again it is working as before without anything new from our end.


Whatever you guy did to fix the previously introduced problem, thank you.

DaveBerard
Moderator

Hi Kris,


 


We did have a problem on the 23rd for a short period of time where some users (mostly usernames with @ symbols in the name) experienced sporadic 404 errors where they should not.  This may have affected you.  At this point, you should not see any more of this issue.

Dave Berard
Senior Product Manager, Constant Contact
TriSys
Regular Participant

I'm getting this same error having just downloaded the C# sample and changing the credentials. I can list contacts no problem, but as soon as I add one, this error occurs.

TriSys Business Software


Cambridge, United Kingdom


www.trisys.co.uk

DaveBerard
Moderator

The posts on this forum were regarding a 404 page not found error which was seen during a 2 hour window in April where one of our API servers was having some issues.  A 400 error generally indicates that some of the information you are sending is incorrect.  This can be a number of validation problems, we would need to see the XML of your request in order to provide you with a more insightful response.

Dave Berard
Senior Product Manager, Constant Contact
DaveBerard
Moderator

The posts on this forum were regarding a 404 page not found error which was seen during a 2 hour window in April where one of our API servers was having some issues.  A 400 error generally indicates that some of the information you are sending is incorrect.  This can be a number of validation problems, we would need to see the XML of your request in order to provide you with a more insightful response.

Dave Berard
Senior Product Manager, Constant Contact
Developer Portal

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

Visit Page