title: React-native getting a response after making a post request is not working
body: <p>I am trying to send back a response after making a successful post request in react-native, but the response does not arrive properly.</p>
  <pre><code>router.route(&quot;/addUser&quot;).post((req, res) =&gt; {
   let name= req.body.name;
    connection.query(
      `INSERT INTO users (id,name) VALUES (NULL,${name})`,
  
      function (error, results) {
        console.log(&quot;REAL RESULTS: &quot; + JSON.stringify(results));
        if (error) throw error;
  
        res.send(&quot;Inserted successfully&quot;); 
      }
    );
  });
  </code></pre>
  <p>Then, when I try to receive the request and print its content (which is expected to be: <strong>Inserted Successfully</strong>) I get:</p>
  <p>{&quot;type&quot;:&quot;default&quot;,&quot;status&quot;:200,&quot;ok&quot;:true,&quot;headers&quot;:{&quot;map&quot;:{&quot;x-powered-by&quot;:&quot;Express&quot;,&quot;content-length&quot;:&quot;21&quot;,&quot;connection&quot;:&quot;keep-alive&quot;,&quot;content-type&quot;:&quot;text/html; charset=utf-8&quot;,&quot;etag&quot;:&quot;W/&quot;15-fAIFznmhviiIlY1HeyBcwGlWsmo&quot;&quot;,&quot;date&quot;:&quot;Wed, 12 Aug 2020 12:35:59 GMT&quot;,&quot;cache-control&quot;:&quot;public, max-age=0&quot;}},&quot;url&quot;:&quot;http://192.168.1.9:3000/database/addUser&quot;,&quot;bodyUsed&quot;:false,&quot;_bodyInit&quot;:{&quot;_data&quot;:{&quot;size&quot;:21,&quot;offset&quot;:0,&quot;blobId&quot;:&quot;aeb788fe-9bab-4641-a0a3-25e5df4c8890&quot;,&quot;__collector&quot;:{}}},&quot;_bodyBlob&quot;:{&quot;_data&quot;:{&quot;size&quot;:21,&quot;offset&quot;:0,&quot;blobId&quot;:&quot;aeb788fe-9bab-4641-a0a3-25e5df4c8890&quot;,&quot;__collector&quot;:{}}}}</p>
  <p>This is my code for making the request:</p>
  <pre><code>fetch(&quot;http://192.168.1.9:3000/database/addUser&quot;, {
      method: &quot;POST&quot;,
      headers: {
        &quot;Content-Type&quot;: &quot;application/json&quot;,
      },
      body: JSON.stringify({
        name: &quot;Some name&quot;,
      }),
    })
      .then((res) =&gt; {
        console.log(JSON.stringify(res));
  </code></pre>