Receiving API Key error: "Invalid Mailchimp API Key: . You are accessing the wrong datacenter - your client library may not properly support our datacenter mapping scheme."

1,310 views
Skip to first unread message

atom519

unread,
Mar 26, 2010, 11:58:54 AM3/26/10
to MailChimp API Discuss
"Invalid Mailchimp API Key: . You are accessing the wrong datacenter
- your client library may not properly support our datacenter mapping
scheme."

We are currently using v1.1 of the PHP (MCAPI) mailchip API
integration, and it has been working correctly for the past year or
so. Just recenlty, we started receiving the error above when
customers are attempting to fill out and submit the form. Nothing has
been changed on our end, and I show our account as having 2 valid API
keys - and zero inactive or expired keys.

I have looked over the v1.2 API documentation, and have attempted to
change the apiURL to include the datacenter as suggested - but we
receive the same error regardless.

Any help would be appreciated.

jesse

unread,
Mar 26, 2010, 12:33:42 PM3/26/10
to MailChimp API Discuss
It sounds like you are using a version of the MCAPI wrapper that uses
the login() method, the username or password on your accounts have
changed, and you aren't checking for an error after instantiating the
MCAPI class. That will cause the API key to be blank (can't login,
can't retrieve and set the API Key). Depending on how old your version
of it is, it may support passing the API Key in place of the username
(and no password) to bypass the login method. If not, the currently
available versions of the 1.1 and 1.2 wrappers do.

Assuming I'm correct about the user/pass changing, I'd definitely
suggest that you all stop using them and instead just use an API Key.


jesse

Reply all
Reply to author
Forward
0 new messages