I'm trying to work abound with the bull package with Redis on windows, my server is up and running but when I try to access the job it gives me an error, my code so far.
const queue = require('bull');
const jobs = new queue('jobs')
jobs.process((job, done) => {
try {
console.log(job)
} catch (error) {
console.log(error)
}
})
app.post('/upload', (req, res) => {
let dat = req.query;
jobs.add(dat).then(() => {
console.log('done')
}).catch(e => console.log(e))
res.send('job done')
})
here is the error:
{ name: 'evalsha',
args:
[ '0a9a51ee96320953ec7bde8e63f3f060b9dac00c',
'6',
'bull:jobs:wait',
'bull:jobs:paused',
'bull:jobs:meta-paused',
'bull:jobs:id',
'bull:jobs:delayed',
'bull:jobs:priority',
'bull:jobs:',
'',
'__default__',
'{"data":"muny"}',
'{"attempts":1,"delay":0,"timestamp":1568792004594}',
'1568792004594',
'0',
'0',
'0',
'LPUSH',
'4fc02f94-d198-4353-b1b3-8da40399a9c5' ] } }
any guesses why so? also it's throwing unhandled promise rejection even when I've done so, is this behavior just for windows?
As I can see, You are using redis 2.4.6 but according to the doc:
EVALSHA sha1 numkeys key [key ...] arg [arg ...]
Available since 2.6.0.
So, that's why this error is throwing.
Now, basically if you cannot find a redis binary for windows you can download 3.2.1 from here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With