wrong number of arguments for 'set' command
See original GitHub issueUsing 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:
- Created 8 years ago
- Reactions:2
- Comments:20
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It is indeed caused by an old version of redis. I think this issue can be closed.
I had this issue with Redis 2.4.6 on Windows. Updated to 3.0.501 and the problem was solved.