Developer Portal & Documentation


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: 160
Kudos: 11
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!