Suddenly receiving Connection Failure

SOLVED
Highlighted
Advisor

Suddenly receiving Connection Failure

Hello -

 

I've been using the same code and integration for well over a year and today I started getting Connection Failures every time I call the APIs ("https://api.constantcontact.com/v2/...")...I believe around 11am this morning.  Is it possible anything changed or I may have inadvertently changed something?  

 

Thanks - Steve

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Moderator

Re: Suddenly receiving Connection Failure

Hello @imru and @JuanG126,

 

Thank you for reaching out to Constant Contact's API Support.

 

Your assessment of TLS 1.2 is correct. Back on August 23rd 2018 we made a forum post as well as a techblog post, and we emailed the main email address attached to the API Key in Mashery accounts that our provider of API Keys (Mashery) would no longer be supporting TLS 1.0/1.1. Here is the link to that forum post. 

 

https://community.constantcontact.com/t5/Developer-Support-ask-questions/Support-Ending-for-TLS-v1-0...

 

The announcement was in August. The official support of TLS 1.0/1.1 has stopped in September and as of 3/5/19 at around 10am Eastern Mashery began to block any connection that was not TLS 1.2.


Regards,
Jimmy D.
Tier II API Support Engineer

View solution in original post

6 REPLIES 6
Highlighted
Occasional Participant

Re: Suddenly receiving Connection Failure

I started having the same problem this morning, I'm using the C# library and got this error "ConstantContactUtility.ConstantException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Authentication failed because the remote party has closed the transport stream."

 

I hope someone can help us :(

Highlighted
Advisor

Re: Suddenly receiving Connection Failure

I'm using some custom Coldfusion classes I designed (so long ago I barely remembered where all the files were), I haven't had a single API class fail since I put the code in place (and I add about 50 new contacts a day).  I wonder if their API endpoint is trying to force a specific version of TLS or something (on the version of Coldfusion I use the http function doesn't support TLS 1.2...but this kind of change is typically communicated long in advance).  I do have a way around this but I don't want to start changing code that's been in place in prod for this long unless I need to.  

 

The exact string I'm getting back is "Connection Failure. Status code unavailable."

Highlighted
Moderator

Re: Suddenly receiving Connection Failure

Hello @imru and @JuanG126,

 

Thank you for reaching out to Constant Contact's API Support.

 

Your assessment of TLS 1.2 is correct. Back on August 23rd 2018 we made a forum post as well as a techblog post, and we emailed the main email address attached to the API Key in Mashery accounts that our provider of API Keys (Mashery) would no longer be supporting TLS 1.0/1.1. Here is the link to that forum post. 

 

https://community.constantcontact.com/t5/Developer-Support-ask-questions/Support-Ending-for-TLS-v1-0...

 

The announcement was in August. The official support of TLS 1.0/1.1 has stopped in September and as of 3/5/19 at around 10am Eastern Mashery began to block any connection that was not TLS 1.2.


Regards,
Jimmy D.
Tier II API Support Engineer

View solution in original post

Highlighted
Occasional Participant

Re: Suddenly receiving Connection Failure

Thank you @imru and @Jimmy_D, I got it working now :)

 

Have a nice day!

Highlighted
Solution Provider

Re: Suddenly receiving Connection Failure

Hi,

 

We had to reconfigure our entire infrastructure and now we are getting this error (which was working fine earlier after making required changes in 2018 for TLS 1.2). Can you point us in the right direction so that we can get this working again?

 

Thanks in advance,

Highlighted
Moderator

Re: Suddenly receiving Connection Failure

Hello @YogeshK,

 

The TLS 1.2 changes have been in place for a long time at this point, if you are having issues related to this I would double check that your servers running your integrations are fully updated to run TLS 1.2.

 

If you are having other issues with the API please indicate what those error codes are so we can take a look at them.


Regards,
Jimmy D.
Tier II API Support Engineer
Developer Portal

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

Constant Contact Would Like To Hear From You!

We want to hear from customers like you about your favorite features and how they have helped your business or organization. Tell us by answering a few questions in...

Read More
Featured