Cannot read property 'resurrectTimeout' of undefined
See original GitHub issueGreetings!
I found an error in the code:
const connection = this.connections.find(c => c.id === this.dead[0])
if ((opts.now || Date.now()) < connection.resurrectTimeout) {
debug('Nothing to resurrect')
callback(null, null)
return
}
If the connection is not found. Then the code will throw an error further: Cannot read property ‘resurrectTimeout’ of undefined
I just got a lot of such errors in production.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Uncaught TypeError: Cannot read property 'Client' of undefined
After working with the debugger as @SteveR suggested, I finally found a hint that led me to elastiseach.js and the following:
Read more >TypeError: Cannot read property 'timed_out' of null and ...
Hi guys, We are using kibana, search guard in combination with keycloak (openid). While reading indeces in the kibana dashboards I have ...
Read more >Release notes | Elasticsearch JavaScript Client [7.17] | Elastic
Fixed "Cannot read property then of null" #1594edit ... Show the body as string if the response error can't be read as ES...
Read more >Cannot read properties of undefined' - JavaScript Debugging
Join Discord https://selftaught-dev.com/join-discord//r/SelfTaughtDev - https://www.reddit.com/r/selftaughtdevGet My Resume Template Free ...
Read more >Community addon's - Warmane | Forum
IF YOU KNOW WHAT YOU ARE DOING, THAN YOU CAN SCROLL DOWN FOR THE ADDONS PROVIDED, IF NOT, THAN PLEASE READ THE POST...
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
I’ve released this fix in
v7.7.0-rc.1
, you can install it withThank you very much for your help!
I add
CustomConnectionPool
to my application. And I collect logs. I’ll be back as soon as this happens again.Yes. Restarting the application helps. Errors stop for a while.