a year 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
a year ago
Bah da da da dah
a year ago
ioredis!
a year 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)a year 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
a year ago
What you have is fine
fixed it with using
const redis = new Redis({ host: process.env.REDISHOST, port: process.env.REDISPORT, user: process.env.REDISUSER, password: process.env.REDISPASSWORD, family: 0 })
a year ago
weird
a year ago
those two things should do the same thing
a year ago
oh well
Status changed to Solved brody • 11 months ago