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

zoen’s picture

Priority: Normal » Critical

Same 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.

stephthegeek’s picture

Priority: Critical » Normal

Ditto, just started getting the same.

stephthegeek’s picture

Priority: Normal » Critical
zoen’s picture

I 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.

WhenInRome’s picture

It seems that people are still being added to my Lists on mailchimp even though i'm getting this error.

WhenInRome’s picture

It seems that people are still being added to my Lists on mailchimp even though i'm getting this error.

zoen’s picture

Are 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.

stephthegeek’s picture

The 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."

zoen’s picture

Hmmm. 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:

  1. Download the current PHP API wrapper from Mailchimp ( http://www.mailchimp.com/api/downloads/ ). Drop the new MCAPI.class.php into your MailChimp module folder.
  2. Go to admin/settings/mailchimp, click "Click here to login as a different user", and enter your MailChimp API key in the "Mailchimp username" field. (You can get your MailChimp API key by logging in to mailchimp.com, clicking the "Account" button in the top left of your Dashboard, then clicking "API Keys & Info".) And make sure you put your MailChimp password in the "MailChimp password" field, too.
arianek’s picture

+1

zoen’s picture

Priority: Critical » Normal

Huh. 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*

stephthegeek’s picture

Ditto.

WhenInRome’s picture

Looks like it's back up and working on my site too.

WhenInRome’s picture

Still getting errors in my logs.

************@aol.com has failed to subscribed to ...
Message: Could not read response (timed out)

levelos’s picture

Status: Active » Closed (fixed)

Folks, MailChimp had a hardware failure the last couple days causing the issues (http://twitter.com/mailchimpstatus).

Hammad.Chishti’s picture

Component: Code » General

As 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

Hammad.Chishti’s picture

This 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);
}
}