Error event listener is not fired when the cluster is not connectable
See original GitHub issueCode :
const redisClient = new Cluster(config.get('server.redis.cluster'))
redisClient.on('error', (err) => console.error('error listener', err))
Step to reproduce
- Connect to the cluster correctly
- 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:
- Created 4 years ago
- Comments:6
Top 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 >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
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.
I’m also encountering this with
iosredis@4.14.1