The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

No free connections - API log error

Occasional Contributor

No free connections - API log error

Good morning.
We are using an API to create contacts and schedule email campaigns. The past few days the API's have been failing.
Our logs are showing these errors:

[2012-11-02 18:45:00,771] [DEBUG] [org.apache.http.impl.conn.tsccm.ConnPoolByRoute] [No free connections [HttpRoute[{s}->]][null]]
[2012-11-02 18:45:00,771] [DEBUG] [org.apache.http.impl.conn.tsccm.ConnPoolByRoute] [Available capacity: 0 out of 2 [HttpRoute[{s}->]][null]]
[2012-11-02 18:45:00,771] [DEBUG] [org.apache.http.impl.conn.tsccm.ConnPoolByRoute] [Need to wait for connection [HttpRoute[{s}->]][null]]
[2012-11-06 09:33:31,006] [DEBUG] [org.quartz.utils.UpdateChecker] [Checking for update...]
[2012-11-06 09:36:40,004] [DEBUG] [org.quartz.utils.UpdateChecker] [Update check failed: Connection timed out]


We have recycled our server but still not working. Is there anyway you could kill/restart our connections on your side? or provide any assistance as to why we are getting this error.




Re: No free connections - API log error



We close HTTP connections on our side after a fairly brief period, so the connections that your server is maintaining are not likely to us.  Your HTTP connections need to be closed, so you'd need to go through the files (code) on your end to see where HTTP connections aren't being closed (usually this just looks like "foo.close()" in code, but you would be looking for a connection that is opened ("") but never closed in your code.


Based on what you provided, you have 2 HTTP ports to connect through, but both are being used.  Sorry there's no universal way I know of to close HTTP connections--that would depend on what your server configuration is and your code.  


Best Regards,

Shannon W.

API Support Specialist

Developer Portal

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

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More