Open prameet-verma opened 10 months ago
What happens when you try lazyConnect: false
?
Hope it helps someone here. We were facing a similar issue and this answer from Stack Overflow worked well for us - https://stackoverflow.com/questions/76409668/how-to-connect-to-amazon-memorydb-for-redis-from-node-running-in-ec2-ecs
I am running my NextJS application which uses AWS Elasticahe Redis Cluster on server side. Now I am trying use a different redis cluster but in TLS mode with these settings:
My code:
I have followed the documentation https://github.com/redis/ioredis#special-note-aws-elasticache-clusters-with-tls.
### Error:
ClusterAllFailedError: Failed to refresh slots cache.
Logs with DEBUG mode:
Please note that I am able to connect to redis cluster via redis-cli and able to perform CRUD operations as well. The same code works with TLS disabled.