title: Mailchimp API with NodeJS - add a member to list returns me "Error: getaddrinfo ENOTFOUND"
body: <p>I'm working with Mailchimp API in NodeJS and fail to add a member to a list.</p>
  
  <p>​</p>
  
  <p>Here my snippet.js</p>
  
  <pre><code>var username = "&amp;&amp;";
  var password = "&amp;&amp;-us&amp;&amp;";
  var auth = "Basic " + new Buffer(username + ":" + password).toString("base64");
  var url = "https://us-&amp;&amp;.api.mailchimp.com/3.0/lists/[listId]/members";
  var json = { "email_address":"test@ŧest.com", 
  "status":"pending", 
  "merge_fields":{ "FNAME" : "newuser", 
                   "LNAME" : "happy" }
              }
  request({ url, json: json, method: 'POST', 
            headers: { 'Content-Type': 'application/json', 
                       'Authorization': 'apikey ' + password }
           }, function(err, res, body){
                   if(err){ 
                          return console.log("err:", err) 
                  } 
                     console.log("connection succeed"); console.log("res: ", res) 
  });
  </code></pre>
  
  <p>​
  My console returns me :</p>
  
  <p>​</p>
  
  <blockquote>
    <p>err: { Error: getaddrinfo ENOTFOUND us-`&amp;&amp;.api.mailchimp.com
    us-18.api.mailchimp.com:443</p>
    
    <p>at errnoException (dns.js:50:10)</p>
    
    <p>at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:92:26)</p>
    
    <p>code: 'ENOTFOUND',</p>
    
    <p>errno: 'ENOTFOUND',</p>
    
    <p>syscall: 'getaddrinfo',</p>
    
    <p>hostname: 'us-&amp;&amp;.api.mailchimp.com',</p>
    
    <p>host: 'us-&amp;&amp;.api.mailchimp.com',</p>
    
    <p>port: 443 }</p>
  </blockquote>
  
  <p>​I can't figure out what is wrong, if anybody has an hint, would be great.</p>