SirDemon
SirDemon

Reputation: 1758

SailsJs 10 rc 9 connect-redis error

I've upgraded my project to use the latest sailsJs 10.0-rc9. After running sails lift, it said I should install and use [email protected] (for sessions). I installed as required.

However, immediately after login and receiving a session, the server crashes and I get this:

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

I would rather not mess with the code of a third party module. Anyone know why this is actually happening?

My session setup is below, if it makes a difference:

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
}

Upvotes: 2

Views: 582

Answers (1)

Eugene Obrezkov
Eugene Obrezkov

Reputation: 2986

This bug already fixed at edge version of sails. For install it just execute:

npm install sails@git://github.com/balderdashy/sails.git

Upvotes: 3

Related Questions