【问题标题】:Uncaught exception causes app crash in Sails JS ~0.12.11未捕获的异常导致 Sails JS ~0.12.11 中的应用程序崩溃
【发布时间】:2017-07-20 07:41:18
【问题描述】:

错误是: event.js 行号 160 未处理的异常。

在 utils.js 未处理错误后发生此错误 由于错误:写 EPROTO 139889615579008:error:140770FC:SSLroutines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:794:

应用程序立即崩溃。

【问题讨论】:

    标签: crash sails.js uncaught-exception


    【解决方案1】:
    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.
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-08-15
      • 2016-06-13
      • 2017-04-18
      • 1970-01-01
      • 1970-01-01
      • 2013-09-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多