Closed (fixed)
Project:
Mailchimp
Version:
6.x-2.x-dev
Component:
General
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2010 at 18:55 UTC
Updated:
16 Jan 2012 at 06:11 UTC
I'm getting this error in my logs. Pretty positive that I didn't do anything on my end that would cause this. Anyone else getting this? Sounds like a failed DNS request.
Could not retrieve info for mailchimp. The following error was returned: Bad Response. Got This: Could not connect (0 - php_network_getaddresses: getaddrinfo failed: Name or service not known).
Thanks,
Comments
Comment #1
zoen commentedSame issue affecting all our sites with MailChimp forms, connecting to different MailChimp accounts. I talked to MailChimp live support and they said they're not seeing any issue on their end. Checked our MailChimp API keys and they are valid.
Comment #2
stephthegeek commentedDitto, just started getting the same.
Comment #3
stephthegeek commentedComment #4
zoen commentedI just downloaded a new copy of the MailChimp API's PHP wrapper from the MailChimp site ( http://www.mailchimp.com/api/downloads/ ) and dropped it into my MailChimp module folder. Now I'm getting a fun and different error! "You do not have any valid MailChimp mailing lists." Which is wrong, but at least it's progress.
Comment #5
WhenInRome commentedIt seems that people are still being added to my Lists on mailchimp even though i'm getting this error.
Comment #6
WhenInRome commentedIt seems that people are still being added to my Lists on mailchimp even though i'm getting this error.
Comment #7
zoen commentedAre people still seeing and using the newsletter subscription form on your website? For us, the MailChimp signup forms have disappeared from our websites, but we can still log in to our accounts at mailchimp.com.
Comment #8
stephthegeek commentedThe subscription forms have disappeared on our site. At least it doesn't hold up the forms they were being displayed on, like user/register or the checkout.
And I just got the same as arianek (who first noted this issue on IRC) from their support:
"Alianor: Okay, it looks like the API call is working on our end so the next step will be contacting the company that engineered the Drupal plugin."
Comment #9
zoen commentedHmmm. In the old version of the mailchimp API, the function that connects to MailChimp requires your MailChimp username and password. In the new version of the API, the same function requires your MailChimp API key and password.
By updating the API file and entering my API key in the "username" field on admin/settings/mailchimp, I've got it connecting successfully, and finding my lists. The subscription form comes back too.
So here's how I got my stuff working, temporary-fix style:
Comment #10
arianek commented+1
Comment #11
zoen commentedHuh. The problem seems to have disappeared. Signup forms are back, and error message gone, on sites to which I hadn't even applied my fix from http://drupal.org/node/749738#comment-2753006 . *raises eyebrow in the general direction of MailChimp*
Comment #12
stephthegeek commentedDitto.
Comment #13
WhenInRome commentedLooks like it's back up and working on my site too.
Comment #14
WhenInRome commentedStill getting errors in my logs.
************@aol.com has failed to subscribed to ...
Message: Could not read response (timed out)
Comment #15
levelos commentedFolks, MailChimp had a hardware failure the last couple days causing the issues (http://twitter.com/mailchimpstatus).
Comment #16
Hammad.Chishti commentedAs per your comment #9 I follow all steps but couldnt find the filed where i put the username or password.
We have a major connection issue in our live website.
we integrated mailchimp with v 1.2 Mailchimp Api,
before that we integrated mailchimp on our development server everything looks fine there
but when we move it on our live server it started showing "mailchimp connection timeout"
and some time our server also lost his connection, and users redirects to blank page.
Could someone please help us to resolve this issue [Urgently].
Thanks in advance
Comment #17
Hammad.Chishti commentedThis will be solved by editing mailchimp 1.2v, there is a mistake in MCAPI class file,
if ($this->secure){
try {
$sock = @fsockopen("ssl://".$host, 443, $errno, $errstr, 30);
if(!$sock){
throw new Exception('Could not connect to Mailchimp');}
} catch (Exception $e) {
drupal_set_message($e->getMessage(), 'warning', $repeat=false);
watchdog('mailchimp', 'MCAPI Error: %errormsg', array('%errormsg' => $e->getMessage()), WATCHDOG_ERROR);
}
} else {
try {
$sock = @fsockopen("ssl://".$host, 443, $errno, $errstr, 30); // This is the mistake which calling ssl in both if and else, fix by replacing following line //
$sock = @fsockopen($host, 80, $errno, $errstr, 30);
if(!$sock){
throw new Exception('Could not connect to Mailchimp');}
} catch (Exception $e) {
drupal_set_message($e->getMessage(), 'warning', $repeat=false);
watchdog('mailchimp', 'MCAPI Error: %errormsg', array('%errormsg' => $e->getMessage()), WATCHDOG_ERROR);
}
}