• Resolved primalgraphics

    (@primalgraphics)


    I searched but couldn’t find any results that would actually work for me, but I’m having what seems like a common issue with Mail Chimp API and this plugin. Yesterday I created a brand-new Mail Chimp account, Generated an API, Copied it into the Plugin, and get an error connecting. I disabled all plugins except MC4WP, but nothing changed, I contacted our webhost to make sure Curl and everything was up to date, I made sure the MC4WP was up to date, I tried a new API, I deleted the Plugin and reinstalled it, nothing seems to work, the error I get is:
    ———————————————–

    Mailchimp returned the following error:
    Unauthorized. API Key Invalid. Your API key may be invalid, or you've attempted to access the wrong datacenter.
    
    Request:
    GET https://us14.api.mailchimp.com/3.0/?fields=account_id
    
    Response:
    401 Unauthorized
    {"type":"https://mailchimp.com/developer/marketing/docs/errors/","title":"API Key Invalid","status":401,"detail":"Your API key may be invalid, or you've attempted to access the wrong datacenter.","instance":"d472aaed-dfe4-502e-4efd-370fb296e4a0"}

    ——————————————————–
    I also added the API Key to a test URL I found on another support thread that returned this error:
    {“type”:”https://mailchimp.com/developer/marketing/docs/errors/”,”title”:”Forbidden”,”status”:403,”detail”:”The API key provided is linked to datacenter ‘us14′”,”instance”:”665ec9ef-a125-72b4-eb1c-adbe8f2c5a16″}
    ————————————————————
    Thank you for any assistance you can provide

    Dave

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Lap

    (@lapzor)

    The error means the API key is invalid or doesn’t have sufficient rights.
    Make sure you use a normal API key, not the Mobile SDK API key.

    When you create the test URL, make sure the URL starts with us14. eg

    https://us14.api.mailchimp.com/3.0/?fields=account_id&apikey=YOUR KEY HERE

    I recommend you create (another) new API key

    Thread Starter primalgraphics

    (@primalgraphics)

    Okay, apparently, I was following their instructions to make the SDK API Key, Problem Solved.

    Thank you
    Dave

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Another API Error’ is closed to new replies.