title: How to fix 'TypeError: Network Request Failed' error after having checked all kinds of solutions?
body: <p>I've set up a node.js server with app.post and app.get and I want to post the data from the values of my form which the user fills in to insert in the database, in phpmyadmin. I use Express, body-parser, mysql for my node server. Now I use the fetch in my Registration class where I believe that the error comes from. The error is this: TypeError: Network request failed. </p>
  
  <p>I use Android mobile which is connected to my pc through cable. What i've checked/tried:</p>
  
  <ol>
  <li>Fetch url is http (not https)</li>
  <li>I use my ip4 address (ipconfig > Wireless LAN adapter Wi-Fi > IPv4 address).(not localhost)</li>
  <li>I've tested the url in Postman. This works, with Postman I can POST and GET the data with the same URL. Only difference is in Postman I use localhost instead of my IPv4 address (ipconfig > Wireless LAN adapter Wi-Fi > IPv4 address).</li>
  <li>I've added header Content-Type: application/json. (see fetch code)</li>
  <li>Added android:usesCleartextTraffic="true"> to my AndroidManifest.xml (Accepts clear traffic, such as HTTP)</li>
  <li>I've made this project in RN version 0.60.4 and also 0.59.8, came to same error, only the project I reproduced in 0.59.8, this fetch seems to work fluently with Postman, which it didn't with my project in 0.60.4.</li>
  <li>Logging the server (only it doesn't show anything, because it goes to the catch error in the fetch) 0.60.4 version can be found on my git here: <a href="https://github.com/CPhilipse/httprequest" rel="nofollow noreferrer">https://github.com/CPhilipse/httprequest</a>. Same with the 0.59.8 version: <a href="https://github.com/CPhilipse/testhttprequest" rel="nofollow noreferrer">https://github.com/CPhilipse/testhttprequest</a>.</li>
  <li>Using the fetch example from React Native Networking (docs), but then with my url. Gives same error. When I use the url from the example, it works. Which is the reason I believe that the cause is of my url, only I don't see what.</li>
  </ol>
  
  <pre><code>async handleRegistration(){
          console.log(this.state.name, this.state.email, this.state.password);
          await fetch('http://my_ip:3000/newCustomer', {
              method: 'POST', 
              headers: {
                  'Content-Type': 'application/json',
              },
              body: JSON.stringify({ 
                  "name": this.state.name,
                  "email": this.state.email,
                  "password": this.state.password
              })
          })
              .then(response =&gt; response.json())
              .then(responseJson =&gt; console.log(responseJson))
              .catch((error) =&gt;{
                  console.warn(error);
              });
      }
  </code></pre>
  
  <p>This is my fetch code. The uri newCustomer have I defined in Routes.js (node server) Same with the port 3000.</p>
  
  <p>I expect for the fetch to just work and that the data to post. To the very least, not give this error. What I get is this error message which I've been struggling with for days now: TypeError: Network Request Failed. Am I missing something?</p>