title: axios request to localhost Error: connect ECONNREFUSED using Cloud Functions
body: <p>axios request error in firebase cloud function. here is my code.</p>
  
  <pre><code>import * as functions from 'firebase-functions';
  import axios from 'axios';
  
  export const mobileDoUpdate = 
  functions.firestore.document('/users/{ID}')
  .onUpdate((snapshot, context) =&gt; {
  
  
  axios.get('http://localhost:8000/user?id=29&amp;status=active')
  .then(response =&gt; {
      console.log(response.data.url);
      console.log(response.data.explanation);
  })
  .catch(error =&gt; {
      console.log(error);
  });
  
  });
  </code></pre>
  
  <p>the error is showing me Error: connect ECONNREFUSED 127.0.0.1:8000
      at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)
  how can I solve it? help me please.</p>