node-redis-parser icon indicating copy to clipboard operation
node-redis-parser copied to clipboard

ERR wrong number of arguments for 'get' command

Open ktkaushik opened this issue 5 years ago • 0 comments

  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?

ktkaushik avatar Mar 05 '20 06:03 ktkaushik