redis internal network
Hi guys, I'm having problems connecting to redis on the internal network, even using the environment variable settings I can't, has anyone experienced something similar?
I have a nestjs app on the same network and when I try to connect via the public external network I can but if I set the settings for internal network I get this error:
#### MaxRetriesPerRequestError: Reached the max retries per request limit (which is 20). Refer to "maxRetriesPerRequest" option for details.
at Socket.<anonymous> (/app/node_modules/ioredis/built/redis/event_handler.js:182:37)
at Object.onceWrapper (node:events:632:26)
at Socket.emit (node:events:517:28)
at TCP.<anonymous> (node:net:350:12)
9 Replies
Project ID:
N/A
show me your ioredis constructor please
from my nestjs application?
from wherever you have your ioredis constructor
REDIS_HOST=sandbox-bots-queues
REDIS_USERNAME=default
RESIS_PASSWORD=O3pJjLCDNBBkP**
REDIS_PORT=6379
This is how I connect to redis
Solution
add
family: 0
to the redis objectNow it works, thank you!
no problem!