kue: wrong number of arguments for 'set' command
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)
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 2
- Comments: 20
It is indeed caused by an old version of redis. I think this issue can be closed.