title: Fetch gives empty response while waiting for long period
body: <p>I have app made with react and node .</p>
  
  <p>The react app needs to make api call to the node app the node app is running on port 5100 . I am facing problem where I get net_err empty response in the console after waiting long period of time . The thing is my api takes 200s to get the response from the server . </p>
  
  <p>When I hit </p>
  
  <pre><code>http://localhost:5100/api/users/wait-ip
  </code></pre>
  
  <p>I get response after 200 second  But when I hit this in the react app </p>
  
  <pre><code>fetch('/api/users/wait-ip')
  </code></pre>
  
  <p>I get the following error on console</p>
  
  <pre><code> GET http://localhost:3000/api/users/wait-ip net::ERR_EMPTY_RESPONSE
  </code></pre>
  
  <p>This is my function for api </p>
  
  <pre><code>router.get('/api/users/wait-ip',(req,res)=&gt;{
  //Others things happen here
   setTimeout(()=&gt;{
      return res.json({
          data:1
      })
  },150000)
  })
  </code></pre>
  
  <p>This is the response I get while hitting directly on browser after 150seconds</p>
  
  <p><a href="https://i.stack.imgur.com/5VZSS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5VZSS.png" alt="Browser response"></a>
  Any help on how to solve this will  be appreciated</p>