<p dir="auto">Axios shows err_empty_response at 2:01 min. I used the timeout. But it's not working.</p>
<p dir="auto"><strong>This is my axios code.</strong></p>
<p dir="auto">export const createNetwork = networkData =&gt; dispatch =&gt; {<br>
axios({<br>
method: "post",<br>
url: "/createNetworks",<br>
timeout: 1000 * 3 * 60, // Wait for 5 seconds<br>
headers: {<br>
"Content-Type": "application/json"<br>
},<br>
data: {<br>
id: 1234<br>
}<br>
})<br>
.then(res =&gt; {<br>
console.log(res.data);<br>
})<br>
.catch(err =&gt; {<br>
console.log(err);<br>
});<br>
};</p>
<p dir="auto"><strong>server code</strong><br>
<code class="notranslate">let server = app.listen(port, err =&gt; { if (err) throw err; console.log(</code>Server is running in port ${port}<code class="notranslate">); });</code></p>
<p dir="auto">server.timeout = 5 * 60 * 1000;</p>
<p dir="auto"><strong>This is my route</strong></p>
<p dir="auto">app.post("/createNetworks",(req,res)=&gt;{<br>
setTimeout(function(){ res.json({status:true,message:"It's working"}) }, 3000);<br>
})</p>
<h4 dir="auto">Instructions</h4>
<p dir="auto">Please read and follow the instructions before submitting an issue:</p>
<ul dir="auto">
<li>Read all our documentation, especially the <a href="https://github.com/axios/axios/blob/master/README.md">README</a>. It may contain information that helps you solve your issue.</li>
<li>Ensure your issue isn't already <a href="https://github.com/axios/axios/issues?utf8=%E2%9C%93&amp;q=is%3Aissue">reported</a>.</li>
<li>If you aren't sure that the issue is caused by axios or you just need help, please use <a href="https://stackoverflow.com/questions/tagged/axios" rel="nofollow">Stack Overflow</a> or <a href="https://gitter.im/mzabriskie/axios" rel="nofollow">our chat</a>.</li>
<li>If you're reporting a bug, ensure it isn't already fixed in the latest axios version.</li>
<li>If you need a new feature there's a chance it's already implemented in a <a href="https://github.com/axios/axios/blob/master/ECOSYSTEM.md">library</a> or you can implement it using <a href="https://github.com/axios/axios#interceptors">interceptors</a>.</li>
</ul>
<p dir="auto"><strong><g-emoji class="g-emoji" alias="warning">⚠️</g-emoji>👆 Delete the instructions before submitting the issue 👆<g-emoji class="g-emoji" alias="warning">⚠️</g-emoji></strong></p>
<h4 dir="auto">Summary</h4>
<p dir="auto">Describe your issue here, including as much detail as necessary.</p>
<p dir="auto">If you're reporting a bug, include the relevant code and stack traces to debug it (removing any private information).</p>
<p dir="auto">If you're requesting a feature, include some context and examples of code using it.</p>
<h4 dir="auto">Context</h4>
<ul dir="auto">
<li>axios version: <em>e.g.: v0.16.0</em></li>
<li>Environment: <em>e.g.: node v6.9.4, chrome 54, windows 7</em></li>
</ul>