<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Christopher Maduka</title>
    <description>The latest articles on DEV Community by Christopher Maduka (@itzmadukz).</description>
    <link>https://dev.to/itzmadukz</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1164314%2F5961b235-a7ac-4aa3-89e9-f624f1522c31.png</url>
      <title>DEV Community: Christopher Maduka</title>
      <link>https://dev.to/itzmadukz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/itzmadukz"/>
    <language>en</language>
    <item>
      <title>Mailchimp NodeJS ENOTFOUND</title>
      <dc:creator>Christopher Maduka</dc:creator>
      <pubDate>Mon, 18 Sep 2023 13:49:39 +0000</pubDate>
      <link>https://dev.to/itzmadukz/mailchimp-nodejs-enotfound-164j</link>
      <guid>https://dev.to/itzmadukz/mailchimp-nodejs-enotfound-164j</guid>
      <description>&lt;p&gt;I'm stuck on this error trying to do health check on my mailchimp api config and i keep getting ENOTFOUND error. I removed my actual api key&lt;/p&gt;

&lt;p&gt;The config api call&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const mailchimp = require("@mailchimp/mailchimp_marketing");

mailchimp.setConfig({
  apiKey: "API-KEY",
  server: "us-17",
});

async function run() {
  const response = await mailchimp.ping.get();
  console.log(response);
}

run();
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Error:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;node:internal/process/promises:288
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: getaddrinfo ENOTFOUND us-17.api.mailchimp.com
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) {
  errno: -3008,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'us-17.api.mailchimp.com',
  response: undefined
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Followed the developer documentation line by line but can't get past this error. Any help/info would be great&lt;/p&gt;

&lt;p&gt;Tried&lt;/p&gt;

&lt;p&gt;The config api call&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const mailchimp = require("@mailchimp/mailchimp_marketing");

mailchimp.setConfig({
  apiKey: "API-KEY",
  server: "us-17",
});

async function run() {
  const response = await mailchimp.ping.get();
  console.log(response);
}

run();
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Expected :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
   "health_status": "Everything's Chimpy!"
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>mailchimp</category>
    </item>
  </channel>
</rss>
