title: Error: getaddrinfo ENOTFOUND 3128 when post data using Axios in node js
body: <p>I want to store JSON data in a database using Axios in node js. This is my node js code</p>
  <pre><code>const axios = require('axios');
  
  const url = 'http://api/api/master_ab_store';
  
  axios.post(url, {
      &quot;data&quot;:[{&quot;external_id&quot;:&quot;-000001&quot;,&quot;code&quot;:&quot;- &quot;,&quot;name&quot;:&quot;INVESTINDO&quot;,&quot;Phone&quot;:&quot;031-5482334&quot;,&quot;Address&quot;:&quot;Jalan Kelapa Puyuh&quot;,&quot;status_ab&quot;:&quot;A&quot;}]
  })
  .then(function(res){
      console.log(res);
  })
  .catch(function(err){
      console.log(err);
  })
  </code></pre>
  <p>But i got an error like this</p>
  <pre><code>C:\cs_test&gt;node index.js
  Error: getaddrinfo ENOTFOUND 3128
      at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26) {
    errno: -3008,
    code: 'ENOTFOUND',
    syscall: 'getaddrinfo',
    hostname: '3128',
    config: {
      url: 'http://api/api/master_ab_store',
      method: 'post',
      data: '{&quot;data&quot;:[{&quot;external_id&quot;:&quot;-000001&quot;,&quot;KodeAB&quot;:&quot;- &quot;,&quot;NamaAB&quot;:&quot;SUMBER ARTHA INVESTINDO&quot;,&quot;Phone&quot;:&quot;031-5482041-44&quot;,&quot;Fax&quot;:&quot;031-5482048&quot;,&quot;Address&quot;:&quot;Kedungdoro No. 60 Lantai 7;Jawa Timur;Surabaya;60251&quot;,&quot;status_ab&quot;:&quot;A&quot;}]}',
      headers: {
        Accept: 'application/json, text/plain, */*',
        'Content-Type': 'application/json;charset=utf-8',
        'User-Agent': 'axios/0.21.1',
        'Content-Length': 211,
        host: 'api'
      },
  </code></pre>
  <p>In postman, it's running well</p>
  <p><a href="https://i.stack.imgur.com/evOrm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/evOrm.png" alt="enter image description here" /></a></p>
  <p>How to fix this issue? help me because I'm newbie in node js</p>