8 months ago
Hi my deployment can not connect to redis.railway.internal
[ioredis] Unhandled error event: Error: getaddrinfo ENOTFOUND redis.railway.internal at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26)
16 Replies
8 months ago
Bah da da da dah
8 months ago
ioredis!
8 months ago
Add ?family=0 to the end of the connection string
[ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)8 months ago
Can you share the variable you're using now
i am not sure if i should set ${{Redis.REDIS_URL}}/?family=0 or ${{Redis.REDIS_URL}}?family=0
8 months ago
What you have is fine
fixed it with usingconst redis = new Redis({ host: process.env.REDISHOST, port: process.env.REDISPORT, user: process.env.REDISUSER, password: process.env.REDISPASSWORD, family: 0 })
8 months ago
weird
8 months ago
those two things should do the same thing
8 months ago
oh well
Status changed to Solved brody • 8 months ago