Reply
Occasional Contributor
ToddB12
Posts: 7
Registered: ‎12-14-2011
Accepted Solution

(500) Internal Server Error

I have been using Constant Contact API for some time and it has been working fine. All of a sudden I am getting: "The remote server returned an error: (500) Internal Server Error." Nothing in my code has changed. I am using the libraries for .NET, and the error occurs at the 'finally' block in Utility.cs:

 

            Stream stream = Stream.Null;
            try
            {
                // get the response stream
                stream = GetResponseStream(new Uri(currentAddress), authenticationData);

                // parse the stream and get a collection of Contacts
                return ContactComponent.GetContactCollection(stream, out nextChunkId);
            }
            catch (Exception e)
            {
                throw new ConstantException(e.Message, e);
            }
            finally
            {
                // close the response stream
                stream.Close();
            }

 

It seems that this is a problem within Constant Contact as I haven't changed anything with my Authentication Data and am just passing an email address. It occurs when I am trying to use the function Utility.SearchContactByEmail. Any help is appreciated, thanks!

Nick_G
Posts: 162
Kudos: 12
Solutions: 9
Registered: ‎04-20-2011

Re: (500) Internal Server Error

Hey Todd,

 

We experienced an issue with our API earlier today, and we restarted the service. It seems to have resolved these issues in all my testing, so let me know if you're still experiencing those same errors. Thanks!

Nick Galbraith
Support Engineer
Occasional Contributor
ToddB12
Posts: 7
Registered: ‎12-14-2011

Re: (500) Internal Server Error

Thanks for the quick reply, Nick. I did temporarly remove the code that was calling the API, so I will readd it this afternoon and let you know if I have any issues. Thanks!

Occasional Contributor
ToddB12
Posts: 7
Registered: ‎12-14-2011

Re: (500) Internal Server Error

Good to go!

New Member
ErikF18
Posts: 2
Registered: ‎07-25-2013

Re: (500) Internal Server Error

How exactly do you restart the service.  I am experiencing the same 500 error message. 

DaveBerard
Posts: 1,635
Topics: 7
Kudos: 61
Solutions: 58
Registered: ‎06-19-2008

Re: (500) Internal Server Error

We restart our servers periodically when doing software updates or when we take servers in and out of our active pools and for standard maintenance.  This specific thread had to do with an issue where some of our production servers had become unresponsive back in 2012, this is not currently the case as all of our servers are up, live and healthy.  There is no way customers like yourself would be able to restart our services.

 

500 errors can come up for many reasons, especially with our v1 XML API.  Typically, it's caused by XML that is incorrectly formed or has invalid characters that can cause our XML parser to throw an unhandled exception, thus the 500 Server Error instead of a valid error message.  It's usually best for you to provide a code sample and/or your XML payload which is causing the error for us to give you more support. 

Dave Berard
Senior Product Manager, Constant Contact
New Member
ErikF18
Posts: 2
Registered: ‎07-25-2013

Re: (500) Internal Server Error

I understand.  I actually not sure why the error is occuring.  It was working perfectly fine til just a couple days ago.  

DaveBerard
Posts: 1,635
Topics: 7
Kudos: 61
Solutions: 58
Registered: ‎06-19-2008

Re: (500) Internal Server Error

I did take a look at our service logs.  We had an issue with some of our servers from late July 23rd to early July 24th which caused a slight rise in 500 errors.  The 500 errors were intermittent and should be resolved.  Let me know if you see any more happening today.

Dave Berard
Senior Product Manager, Constant Contact