Reputation: 1259
When i try to connect redis which based on redislab, i am getting following error Redis ready ReplyError: NOAUTH Authentication required.
const pubClient = createClient({ url: `${config.redisLabHost}:${config.redisLabPort}` });
pubClient.on('error', (e) => {
console.log('Redis ready', e)
})
const subClient = pubClient.duplicate();
io.adapter(createAdapter(pubClient, subClient));
I followed the official documentation of socketio for redis usage
https://socket.io/docs/v4/redis-adapter/
Upvotes: 1
Views: 3998
Reputation: 1259
Switch to old redis console style, select the database from list. On configuration tab, you will see a default user password.
try the url link format like this redis://default:<default_password>@redis-123.redislabs.com:30011
const { createClient } = require("redis");
const pubClient = createClient(config.redisLabHost);
Upvotes: 1