Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js UncaughtException:在节点JS中连接ETIMEDOUT_Node.js_Exception_Uncaught Exception - Fatal编程技术网

Node.js UncaughtException:在节点JS中连接ETIMEDOUT

Node.js UncaughtException:在节点JS中连接ETIMEDOUT,node.js,exception,uncaught-exception,Node.js,Exception,Uncaught Exception,错误: 如何避免此异常导致服务器崩溃?将错误事件侦听器附加到流 error: uncaughtException: connect ETIMEDOUT date=Wed Jan 14 2015 23:12:29 GMT+0530 (IST), pid=2397, uid=1000, gid=1000, cwd=/home/user/node/workingcopy/server_dev, execPath=/usr/bin/nodejs, version=v0.10.33, argv=

错误:

如何避免此异常导致服务器崩溃?

将错误事件侦听器附加到流
 error: uncaughtException: connect ETIMEDOUT date=Wed Jan 14 2015
 23:12:29 GMT+0530 (IST), pid=2397, uid=1000, gid=1000,
 cwd=/home/user/node/workingcopy/server_dev, execPath=/usr/bin/nodejs,
 version=v0.10.33,
 argv=[nodejs, /home/user/node/workingcopy/server_dev/app.js], rss=69976064,
 heapTotal=63359488, heapUsed=38560856, loadavg=[0.19091796875,
 0.4814453125, 0.439453125], uptime=189505.245376888,
 trace=[column=11, le=net.js, function=errnoException, line=904,
 method=null,
 native=false, column=19, file=net.js, function=Object.afterConnect [as
 oncomplete], line=895, method=afterConnect [as oncomplete],
 native=false], stack=[Error: connect ETIMEDOUT,     at errnoException
 (net.js:904:11),     at Object.afterConnect [as oncomplete]
 (net.js:895:19)]