title: (Error: Network Error) - Can't make a POST request from android simulator (Wifi is ON!)
body: <p>I'm making a POST request to my own server and my server doesn't even receive any request (no request was shown in server terminal).</p>
  
  <p>I can use an internet on browser inside of the simulator. But it's giving me the error below. </p>
  
  <pre><code>Error: Network Error
      at createError (createError.js:16)
      at XMLHttpRequest.handleError (xhr.js:87)
      at XMLHttpRequest.dispatchEvent (event-target.js:172)
      at XMLHttpRequest.setReadyState (XMLHttpRequest.js:546)
      at XMLHttpRequest.__didCompleteResponse (XMLHttpRequest.js:381)
      at XMLHttpRequest.js:485
      at RCTDeviceEventEmitter.emit (EventEmitter.js:181)
      at MessageQueue.__callFunction (MessageQueue.js:260)
      at MessageQueue.js:101
      at MessageQueue.__guard (MessageQueue.js:228)
  </code></pre>
  
  <p>And below is my POST request using axois</p>
  
  <pre><code>export const doAuthLogin = ({ username, password }) =&gt; async dispatch =&gt; {
    axios.post(`${ROOT_URL}/rest-auth/login/`, {
      username,
      password
    }).then(response =&gt; {
        console.log(response);
        // Save Token post is Already await. 
        AsyncStorage.setItem('auth_token', response.token);
        dispatch({ type: AUTH_LOGIN_SUCCESS, payload: response.token });
      })
      .catch(response =&gt; {
        console.log(response);
        dispatch({ type: AUTH_LOGIN_FAIL, payload: response.non_field_errors });
      });
  };
  </code></pre>
  
  <p>What is Network Error? And how can I fix it? </p>
  
  <p>Thank you so much!!</p>