Invalid Mailchimp API Key: ### . You are accessing the wrong datacenter - your client library may not properly support our datacenter mapping scheme.
Interestingly, when I create a new api key and configure my code to use it, it works fine, for a while, and then I get the error again. If I switch back to the original key, it works again! For a while, and then breaks again.
One thing to note is that the application (which is synchronizing lists) is accessing multiple accounts with different keys. It almost seems as though a key is disabled if there is some sort of activity that flags irregular behavior or something.
I'm using the latest MailChimp python package.
Any ideas?
Thanks,
Max
--
You received this message because you are subscribed to the Google Groups "MailChimp API Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mailchimp-api-di...@googlegroups.com.
To post to this group, send email to mailchimp-...@googlegroups.com.
Visit this group at http://groups.google.com/group/mailchimp-api-discuss.
For more options, visit https://groups.google.com/groups/opt_out.
def find_last_mailchimp_sub_date(mailchimp_list_id, api_key):
mc = mailchimp.Mailchimp(apikey=api_key)
members = mc.lists.members(id=mailchimp_list_id, status='subscribed',
opts={'sort_field': 'last_update_time', 'sort_dir': 'DESC'})
date = members['data'][0]['timestamp']
return date
Hey Max,Sounds like the URL to hit the API is being cached statically or in a class instance variable that's being reused and not properly rebuilt on every access of the API with a different key. I'd need to see all of the code to know if that's the deal or not, though. You could try making sure you re-initialize the object you are calling for API access on all accesses for a different user / API key and see if that clears it up.
On Tue, Nov 19, 2013 at 1:07 PM, Max Keeler <max.k...@gmail.com> wrote:
Hello,I am intermittently receiving this error:Invalid Mailchimp API Key: ### . You are accessing the wrong datacenter - your client library may not properly support our datacenter mapping scheme.Interestingly, when I create a new api key and configure my code to use it, it works fine, for a while, and then I get the error again. If I switch back to the original key, it works again! For a while, and then breaks again.
One thing to note is that the application (which is synchronizing lists) is accessing multiple accounts with different keys. It almost seems as though a key is disabled if there is some sort of activity that flags irregular behavior or something.
I'm using the latest MailChimp python package.
Any ideas?
Thanks,
Max
--
You received this message because you are subscribed to the Google Groups "MailChimp API Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mailchimp-api-discuss+unsub...@googlegroups.com.
ROOT = re.sub(r'.*api', 'https://' + dc + '.api', ROOT)