hugofirth / laravel-mailchimp

A composer package for the MailChimp API PHP class (as provided by MailChimp) which supports the Laravel 4 framework.
96 stars 27 forks source link

Mailchimp_HttpError #33

Open milports opened 9 years ago

milports commented 9 years ago

I am getting the following error when trying to dump out a list of list_ids to the screen:

Mailchimp_HttpError API call to lists/list failed: Could not resolve host: key-here.api.mailchimp.com

Code that throws error: if(curl_error($ch)) { throw new Mailchimp_HttpError("API call to $url failed: " . curl_error($ch)); }

My API key is configured correctly as per instructions and I have no idea how to resolve. I have searched through all the code and cannot find the URL "key-here.api.mailchimp.com" anywhere

I have even tried regenerating a new API key in case that was the problem.

Have you ever seen this type of error?

Thanks!

nicolasdanelon commented 8 years ago

you have to edit you app/config/packages/hugofirth/mailchimp/config.php file