title: Cannot send request with React Native and Axios
body: <p>I've read dozens of answers, and I can't seem to figure this out:</p>
  
  <ul>
  <li>The request works fine in iOS, but it does <em>not</em> work in Android</li>
  <li>I am using React Native 0.57.5 and axios 0.18.0</li>
  <li>I put some logging via</li>
  </ul>
  
  <blockquote>
  <pre><code>axios.interceptors.request.use(request =&gt; {
    console.log('Starting Request', request)
    return request
  })
  
  axios.interceptors.response.use(response =&gt; {
    console.log('Response:', response)
    return response
  })
  </code></pre>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/01HLX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/01HLX.png" alt="enter image description here"></a></p>
  
  <p>As it can be seen, the request seems fine. And it is not towards <code>localhost</code> but to an actual, running server (I redacted some internal header keys and the full URLs)</p>
  
  <ul>
  <li>Also put a log statement to <code>catch</code> of where I make my axios request:</li>
  </ul>
  
  <blockquote>
  <pre><code>axios.request(config)
        .then((axiosResponse) =&gt; {
          console.log('GOOD RESPONSE ', axiosResponse)
  
          // some logic 
        })
        .catch((error) =&gt; {
          console.log('axiosResponse ERROR', error)
          // some other logic
        })
  </code></pre>
  </blockquote>
  
  <p>And this is what I see in the chrome debugger console:</p>
  
  <blockquote>
  <pre><code>axiosResponse ERROR 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:580)
      at XMLHttpRequest.__didCompleteResponse (XMLHttpRequest.js:394)
      at XMLHttpRequest.js:507
      at RCTDeviceEventEmitter.emit (EventEmitter.js:190)
      at MessageQueue.__callFunction (MessageQueue.js:349)
      at MessageQueue.js:106
      at MessageQueue.__guard (MessageQueue.js:297)
      at MessageQueue.callFunctionReturnFlushedQueue (MessageQueue.js:105)
      at debuggerWorker.js:72
  </code></pre>
  </blockquote>
  
  <p>This is part of my upgrade from React Native 0.55.0 to 0.57.5, so this axios stuff was working normally before.</p>
  
  <p>Any ideas?</p>