question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

wrong number of arguments for 'set' command

See original GitHub issue

Using the sample code (below) on version 0.9.1 fails with the error message below. If I install kue version 0.8.12 it all works properly.

var kue = require('kue')
 , queue = kue.createQueue();

queue.process('email', function(job, done){
  email(job.data.to, done);
});

function email(address, done) {
  if(!isValidEmail(address)) {
    //done('invalid to address') is possible but discouraged
    return done(new Error('invalid to address'));
  }
  // email send stuff...
  done();
}
fiveapp@brooks:~/dashboard/pdfKue$ node .

/home/fiveapp/dashboard/pdfKue/node_modules/kue/node_modules/redis/index.js:575
                throw callback_err;
                      ^
Error: ERR wrong number of arguments for 'set' command
    at ReplyParser.<anonymous> (/home/fiveapp/dashboard/pdfKue/node_modules/kue/node_modules/redis/index.js:317:31)
    at ReplyParser.emit (events.js:95:17)
    at ReplyParser.send_error (/home/fiveapp/dashboard/pdfKue/node_modules/kue/node_modules/redis/lib/parser/javascript.js:296:10)
    at ReplyParser.execute (/home/fiveapp/dashboard/pdfKue/node_modules/kue/node_modules/redis/lib/parser/javascript.js:181:22)
    at RedisClient.on_data (/home/fiveapp/dashboard/pdfKue/node_modules/kue/node_modules/redis/index.js:547:27)
    at Socket.<anonymous> (/home/fiveapp/dashboard/pdfKue/node_modules/kue/node_modules/redis/index.js:102:14)
    at Socket.emit (events.js:95:17)
    at Socket.<anonymous> (_stream_readable.js:765:14)
    at Socket.emit (events.js:92:17)
    at emitReadable_ (_stream_readable.js:427:10)

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:2
  • Comments:20

github_iconTop GitHub Comments

1reaction
ghostcommented, Jun 28, 2015

It is indeed caused by an old version of redis. I think this issue can be closed.

0reactions
ikbelkirasancommented, Sep 29, 2017

I had this issue with Redis 2.4.6 on Windows. Updated to 3.0.501 and the problem was solved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

redis Error : ERR wrong number of arguments for 'set' command
1)If your trying to run redis on windows set accepts only two arguments cause the redis version issue. 2)try latest version of redis...
Read more >
ERR wrong number of arguments for 'set' command #1536
I am using Redis on a Windows machine and using it in Node JS and want to set expire time using CLIENT.SET but...
Read more >
wrong number of arguments for 'set' command Request Method
currently it's deployed in nginx+gunicorn+virtualenv and loaded with production.py setting. I have no problem to connect rdis server with rids-client. CACHES = ...
Read more >
Redis, wrong number of arguments for 'set' command node.js ...
Coding example for the question Redis, wrong number of arguments for 'set' command node.js-node.js.
Read more >
redis Error : ERR wrong number of arguments for 'set' command
Node.js – redis Error : ERR wrong number of arguments for 'set' command ... on my local machine the code is running successfully...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found