API connect error; ERR 110: Connection timed out

794 views
Skip to first unread message

David Good

unread,
May 14, 2012, 9:10:46 AM5/14/12
to mailchimp-...@googlegroups.com
I'm doing some programming with the MCAPI. I have code which works 100% when on a testing server based in the UK, but on the live server in the US, the code seems to have stopped working. 

I see the error "Unable to Create New Campaign! Code=-99 Msg=Could not connect (ERR 110: Connection timed out)".

I submitted a ticket to MC, whose reply mentiioned the server maintenance yesterday, but that should be fixed.

Any help as to how I can diagnose this error would be much appreciated.

David.

jesse

unread,
May 14, 2012, 9:44:29 AM5/14/12
to mailchimp-...@googlegroups.com
There are some general tips on troubleshooting connectivity here:

http://apidocs.mailchimp.com/gettingstarted/timeouts.php

Are you hitting us2 and had hardcoded ip addresses somewhere or have one of those hosts who insists on whitelisting outbound connections? If so, that's the likely culprit.


jesse

David Good

unread,
May 14, 2012, 9:47:07 AM5/14/12
to mailchimp-...@googlegroups.com
No, I don't believe it's hardcoded; if it was surely it would fail on the UK server.

I'll check those docs and double-check the code.

David Good

unread,
May 14, 2012, 10:04:10 AM5/14/12
to mailchimp-...@googlegroups.com
I've checked the code; no sign of hard-coded IP addressese or even . fwiw, my API key does end "-us2". 

All the timeout values and urls etc.. are the default untouched MCAPI.class.php. 

I don't understand why this worked a couple of days ago.

jesse

unread,
May 14, 2012, 10:48:44 AM5/14/12
to mailchimp-...@googlegroups.com
IPs changed and you almost certainly have one hardcoded somewhere - that would be in dns or something like a hosts file, not code - OR your host requires whitelisting ip addresses. Testing connectivity from the server should confirm that - if pings work, use something like tcptraceroute or talk to your server admin/host to get help testing connectivity.


jesse

David Good

unread,
May 14, 2012, 11:00:51 AM5/14/12
to mailchimp-...@googlegroups.com
Thanks. I don't think there's any reason why this would be hard-coded, but I've asked our sys-admin to look into this and do a ping test to us2.api.mailchimp.com and let's see what we get back.

Thanks,

David.

Stacey Mulcahy

unread,
May 14, 2012, 1:37:10 PM5/14/12
to mailchimp-...@googlegroups.com
I am having a similar Issue. I am using the MCAPI - and locally on my test environment, everything works okay. Once put to a dev server I am getting this response:
{"success":false,"error":"There was an error with the system: Could not connect (ERR 110: Connection timed out)"}

The call doesn't consistently register in the list api activity. 
My authorization key ends in - us2
I have asked about whitelisting ips - not an issue. I have asked about the secure/not secure option, we tried the not secure option.
Suggestions? 

jesse

unread,
May 14, 2012, 1:54:35 PM5/14/12
to mailchimp-...@googlegroups.com
Everything I can suggest looking at is listed above and (largely duplicated) over here:

https://groups.google.com/d/topic/mailchimp-api-discuss/BDdm192MrCg/discussion


jesse

David Good

unread,
May 14, 2012, 4:01:39 PM5/14/12
to mailchimp-...@googlegroups.com
This problem has magically disappeared for me; I guess it was a slow to propagate IP change between servers.

Stacey Mulcahy

unread,
May 14, 2012, 4:21:55 PM5/14/12
to mailchimp-...@googlegroups.com, mailchimp-...@googlegroups.com
Same

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "MailChimp API Discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msg/mailchimp-api-discuss/-/L4GaAxLbMTUJ.
To post to this group, send email to mailchimp-...@googlegroups.com.
To unsubscribe from this group, send email to mailchimp-api-di...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mailchimp-api-discuss?hl=en.
Reply all
Reply to author
Forward
0 new messages