ErrorReply: ERR wrong number of arguments node redis 连接问题解决
今天在测试kvrocks 与socket.io 集成的时候出现了此问题,刚好记录下
原始连接配置
const pubClient = createClient({ url:"redis://dalongdemo@localhost:6666/0"});
问题修改
const pubClient = createClient({ url:"redis://:dalongdemo@localhost:6666/0"});
参考资料
https://stackoverflow.com/questions/67613484/redis-err-wrong-number-of-arguments-for-auth-command