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.

TypeError: Cannot read property 'zcard' of null

See original GitHub issue
TypeError: 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:

  1. Have kui ui open in a browser window
  2. 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:open
  • Created 8 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
behradcommented, Apr 2, 2016

Thank you @narainsagar , Will try to fix this

0reactions
mmarshakcommented, Jan 19, 2017

@narainsagar Thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

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