TypeError: Cannot read property 'zcard' of null
See original GitHub issueTypeError: Cannot read property 'zcard' of null
at Queue.card (/Users/andrew/Code/send/node_modules/kue/lib/kue.js:513:14)
at Queue.inactiveCount (/Users/andrew/Code/send/node_modules/kue/lib/kue.js:616:17)
at _ (/Users/andrew/Code/send/node_modules/kue/lib/http/routes/json.js:318:19)
at exports.stats (/Users/andrew/Code/send/node_modules/kue/lib/http/routes/json.js:41:3)
at Layer.handle [as handle_request] (/Users/andrew/Code/send/node_modules/kue/node_modules/express/lib/router/layer.js:95:5)
at next (/Users/andrew/Code/send/node_modules/kue/node_modules/express/lib/router/route.js:131:13)
at /Users/andrew/Code/send/node_modules/kue/lib/http/middleware/provides.js:11:36
at Layer.handle [as handle_request] (/Users/andrew/Code/send/node_modules/kue/node_modules/express/lib/router/layer.js:95:5)
at next (/Users/andrew/Code/send/node_modules/kue/node_modules/express/lib/router/route.js:131:13)
at Route.dispatch (/Users/andrew/Code/send/node_modules/kue/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/Users/andrew/Code/send/node_modules/kue/node_modules/express/lib/router/layer.js:95:5)
at /Users/andrew/Code/send/node_modules/kue/node_modules/express/lib/router/index.js:277:22
at Function.process_params (/Users/andrew/Code/send/node_modules/kue/node_modules/express/lib/router/index.js:330:12)
at next (/Users/andrew/Code/send/node_modules/kue/node_modules/express/lib/router/index.js:271:10)
at SendStream.error (/Users/andrew/Code/send/node_modules/kue/node_modules/express/node_modules/serve-static/index.js:120:7)
at emitOne (events.js:77:13)
at SendStream.emit (events.js:169:7)
at SendStream.error (/Users/andrew/Code/send/node_modules/kue/node_modules/express/node_modules/send/index.js:245:17)
at SendStream.onStatError (/Users/andrew/Code/send/node_modules/kue/node_modules/express/node_modules/send/index.js:356:12)
at next (/Users/andrew/Code/send/node_modules/kue/node_modules/express/node_modules/send/index.js:630:16)
at onstat (/Users/andrew/Code/send/node_modules/kue/node_modules/express/node_modules/send/index.js:619:14)
at FSReqWrap.oncomplete (fs.js:82:15)
I get this error pretty consistently under the following conditions:
- Have kui ui open in a browser window
- perform graceful shutdown
I’m not certain if it is expected for Queue.client to be null. If it is, then Queue.prototype.card
should first check if this.client
exists before calling this.client.card
. Same with Queue.prototype.cardByType
Issue Analytics
- State:
- Created 8 years ago
- Comments:8
Top Results From Across the Web
node.js - Kue - TypeError: Cannot read property 'zcard' of null
Issue was causing because of Queue.prototype.shutdown implementation destroy client (i.e., redis) instance that's why when it call ...
Read more >Uncaught TypeError: Cannot read property of null - iDiallo
This will result in Uncaught TypeError: Cannot read property 'value' of null . The reason will be that the element with id input...
Read more >How to fix "TypeError: Cannot read properties of ... - YouTube
JS Casts 12 - How to fix " TypeError : Cannot read properties of null (reading addEventListener)" in JavaScript.
Read more >Cannot read properties of null (reading 'contains')error in react ...
TypeError : Cannot read properties of null (reading 'contains'), Need useEffect Cleanup,EventBubblingtypeerror cannot read property of null ...
Read more >stripe Cannot read property 'addEventListener' of null
I am using stripe element with laravel. I got this error in console subscription:184 Uncaught TypeError: Cannot read property 'addEventListener' of null.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
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
Thank you @narainsagar , Will try to fix this
@narainsagar Thanks!