NodeRedis / node-redis-parser

A high performance Redis protocol (RESP) parser for JavaScript. Used by Node Redis & ioredis.
MIT License
88 stars 36 forks source link

ERR wrong number of arguments for 'get' command #59

Open ktkaushik opened 4 years ago

ktkaushik commented 4 years ago
  1. NodeJS - v12.10.0
  2. Node-redis - v2.8.0
  3. Redis-parser - v2.6.0

For the last couple of days, I have been getting this error. Sorry but I've got no other stacktrace. Unable to understand of why this is happening.

Code -

redisClient.get(this.key, function (err, res) {
    if (err) throw err;
    if (res) {}
}

Error -

ReplyError: ERR wrong number of arguments for 'get' command
        at parseError (/Users/Kaushik/dev/spiked.sh/escalations/node_modules/redis-parser/lib/parser.js:193:12)
        at parseType (/Users/Kaushik/dev/spiked.sh/escalations/node_modules/redis-parser/lib/parser.js:303:14)

What could be causing this?