未捕获的异常导致 Sails JS ~0.12.11 中的应用程序崩溃
Uncaught exception causes app crash in Sails JS ~0.12.11
错误是:
event.js 行号 160
未处理的异常。
此错误是在 utils.js 未处理错误后发生的
由于错误:写入 EPROTO 139889615579008:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown 协议:../deps/openssl/openssl/ssl/s23_clnt.c:794:
应用程序立即崩溃。
function: (req, res, next) {
var domain = require('domain');
var d = domain.create();
d.on('error', function(er) {});
d.add(req);
d.add(res);
d.run(function() {
next();
});
}
Adding this to a common function used in config/http.js worked.
错误是: event.js 行号 160 未处理的异常。
此错误是在 utils.js 未处理错误后发生的 由于错误:写入 EPROTO 139889615579008:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown 协议:../deps/openssl/openssl/ssl/s23_clnt.c:794:
应用程序立即崩溃。
function: (req, res, next) {
var domain = require('domain');
var d = domain.create();
d.on('error', function(er) {});
d.add(req);
d.add(res);
d.run(function() {
next();
});
}
Adding this to a common function used in config/http.js worked.