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.

Error event listener is not fired when the cluster is not connectable

See original GitHub issue

Code :

const redisClient = new Cluster(config.get('server.redis.cluster'))
redisClient.on('error', (err) => console.error('error listener', err))

Step to reproduce

  1. Connect to the cluster correctly
  2. Turn off network

As is

Unhandled error occur and the application crash

Error: connect ENETUNREACH <ip_address> - Local (0.0.0.0:49664)
    at internalConnect (net.js:858:16)
    at defaultTriggerAsyncIdScope (internal/async_hooks.js:299:19)
    at defaultTriggerAsyncIdScope (net.js:948:9)
    at processTicksAndRejections (internal/process/next_tick.js:74:9)

Expect

The error should be catch by the error event listener

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
stale[bot]commented, Oct 23, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 7 days if no further activity occurs, but feel free to re-open a closed issue if needed.

0reactions
henrikhaugboellecommented, Jan 9, 2020

I’m also encountering this with iosredis@4.14.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apache Ignite event listener registration error - Stack Overflow
On our production cluster we are seeing that some events are not getting inserted or updated. There is no error reported from applications....
Read more >
Event listeners not working? 3 key areas to troubleshoot
Are your event listeners not working as you'd expect? Here are 3 key areas to troubleshoot to help you get everything triggering as...
Read more >
Troubleshoot connectivity issues - Azure Event Hubs
This article provides information on troubleshooting connectivity issues with Azure Event Hubs.
Read more >
Troubleshooting Amazon OpenSearch Service
Learn how to identify and solve common Amazon OpenSearch Service errors. ... If your cluster does not use dedicated master nodes, quorum loss...
Read more >
Why Can't I Connect to Kafka? | Troubleshoot Connectivity
My Python/Java/Spring/Go/Whatever Client Won't Connect to My Apache Kafka ... with not an advertised.listeners configuration for you to worry about in sight ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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