DEV Community

Discussion on: Amazon EventBridge API Destinations with parametrized endpoint URL and Mailchimp integration

Collapse
 
neophytte profile image
neophytte

No matter what I do, I can't seem to get the MailChimp API endpoint to work; initially I was getting a 404 with InvocationEndpoint set as ${self:custom.webhook.endpoint}/lists/${self:custom.mailchimp.list}/segments//members* - then I set the endpoint to ${self:custom.mailchimp.endpoint}/lists/${self:custom.mailchimp.list}/members (which directly writes to a list), and modified the JSON payload to:

              InputTemplate: >
                {
                  "email_address": <email>,
                  "status": "subscribed",
                  "interests": {
                    "0ce6ed21da": true
                  }
                }

which works when submitted via Thunderclient or Postman, but shows an error in the attributes SDK_CLIENT_ERROR with Unable to invoke ApiDestination endpoint: The request failed due to an internal validation error. - is there anyway to uncover what the actual error is for the validation?