title: "Error: getaddrinfo ENOTFOUND" error when making an HTTPs request
body: <p>here's the code in AWS Lambda function:</p>
  <pre><code>var https = require('https');
  exports.handler = (event, context, callback) =&gt; {
      var params = {
          host: &quot;bittrex.com&quot;,
          path: &quot;/api/v1.1/public/getmarketsummaries&quot;
      };
      var req = https.request(params, function(res) {
          var test = res.toString();
          console.log(JSON.parse(test));
          //console.log(JSON.parse(res.toString()));
      });
      req.end();
  };
  </code></pre>
  <blockquote>
  <p>Error: getaddrinfo ENOTFOUND <a href="https://bittrex.com" rel="noreferrer">https://bittrex.com</a>
  <a href="https://bittrex.com:443" rel="noreferrer">https://bittrex.com:443</a>
  at errnoException (dns.js:28:10)
  at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)</p>
  </blockquote>
  <p>Other solutions did not work.</p>