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

posted on 2023-10-20 14:07  荣锋亮  阅读(64)  评论(0编辑  收藏  举报

导航