R
Railway13mo ago
Leandro

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)
Solution:
add family: 0 to the redis object
Jump to solution
9 Replies
Percy
Percy13mo ago
Project ID: N/A
Brody
Brody13mo ago
show me your ioredis constructor please
Leandro
LeandroOP13mo ago
from my nestjs application?
Brody
Brody13mo ago
from wherever you have your ioredis constructor
Leandro
LeandroOP13mo ago
REDIS_HOST=sandbox-bots-queues REDIS_USERNAME=default RESIS_PASSWORD=O3pJjLCDNBBkP** REDIS_PORT=6379
No description
Leandro
LeandroOP13mo ago
This is how I connect to redis
Solution
Brody
Brody13mo ago
add family: 0 to the redis object
Leandro
LeandroOP13mo ago
Now it works, thank you!
Brody
Brody13mo ago
no problem!
Want results from more Discord servers?
Add your server