Node.js 0.4.10. HTTP get () request "ETIMEDOUT Connection timed out" often

Recently, I’ve plunged into the ETIMEDOUT Connection Timeout problem. My application simply uses the get () method to download files and data from a remote server. at boot time (I mean that I downloaded several files, but not completely), I just got "ETIMEDOUT Connection timed out". Is this a node.js error? I am using node.js 0.4.10. Due to ETIMEDOUT, I cannot fully upload files.

http = require('http'); client_req = http.get(...)// //... client_req.on('error', callback(err){...})/*When ETIMEDOUT, I get the error message: ETIMEDOUT Connection timed out here.*/ 
0
source share
1 answer

This is not a Node.js error, most likely the URL can no longer be reached, so you get a timeout. As @DeaDEnD suggested, take a curl to find out if you have a timeout also with cURL.

+1
source

All Articles