我已经升级了我的项目以使用最新的sailsJs 10.0-rc9。 跑完帆后,它说我应该安装并使用[email protected](用于会话)。 我按需要安装。SailsJs 10 rc 9 connect-redis错误
然而,登录后和接收会话,服务器崩溃立即与我得到这个:
connections property is deprecated. Use getConnections() method
connections property is deprecated. Use getConnections() method
/home/robert/work/optiwise/node_modules/connect-redis/node_modules/redis/index.js:525
throw err;
^
RangeError: Maximum call stack size exceeded
我宁愿不与第三方模块的代码混乱。任何人都知道为什么这是真的发生?
我的会话建立是低于,如果它的确与众不同:
module.exports.session = {
secret: '38fc8ad5342e5e6555508c01645d5528',
// Set the session cookie expire time
// The maxAge is set by milliseconds, the example below is for 24 hours
//
cookie: {
maxAge: 24 * 60 * 60 * 1000
},
adapter: 'redis',
host: 'localhost',
port: 6666
}
我有完全一样的问题,不过,我使用的MongoDB作为存储... – nhaa123
去同样的事情,但我会崩溃的'node_modules/lodash/DIST /lodash.js:1484'。我不认为这是一个redis或loDash问题。如果我阻止服务器连接到sails套接字,它不会崩溃。 – InternalFX