ClusterAllFailedError: Failed to refresh slots cache.
See original GitHub issueHi All. i have following error can You help me ?
[ioredis] Unhandled error event: ClusterAllFailedError: Failed to refresh slots cache.
code is following. `“use strict”; require(‘./config/config’); const Redis = require(‘ioredis’);
(async()=> {
const startupNodes = [
{host: process.env.REDIS_HOST_1, port: process.env.REDIS_PORT },
{host: process.env.REDIS_HOST_2, port: process.env.REDIS_PORT}
];
const options = {
slotsRefreshTimeout: 2000,
dnsLookup: (address, callback) => callback(null, address),
redisOptions: {
tls: {},
password: process.env.REDIS_PASS,
},
};
const cluster = new Redis.Cluster(startupNodes, options);
console.log(cluster);
})();`
Issue Analytics
- State:
- Created 4 years ago
- Comments:20
Top Results From Across the Web
ioredis - ClusterAllFailedError: Failed to refresh slots cache
I'm dealing with a ClusterAllFailedError: Failed to refresh slots cache. issue from ioredis and Elasticache. This is my clustering config
Read more >luin/ioredis - Gitter
... using a node.js application .. however, i am getting this error "ioredis unhandled error event clusterallfailederror failed to refresh slots cache".
Read more >clusterallfailederror: failed to refresh slots cache.
The FTX headquarters is now unoccupied, with furniture pushed against some windows. Its signage has been removed. The plot of land, which cost...
Read more >redis cluster[使用redis 集群过程中查到的资料] - CNode技术社区
Failed to refresh slots cache https://github.com/luin/ioredis/issues/220. 如果本地没有配置集群, 不要使用new ioredis.Cluster()方法去创建redisClient, ...
Read more >ClusterAllFailedError: Failed to refresh slots cache -
this code run error : ClusterAllFailedError: Failed to refresh slots cache const clusterOptions = { enableReadyCheck: false, ...
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
Same issue here
Have the same issue. Using an AWS elasticache redis (cluster mode enabled with multiple shards). I get the issue when using in-transit encryption and trying to access behind a NAT instance.