2 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)
0 Replies
2 months ago
Bah da da da dah
2 months ago
ioredis!
2 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)
2 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
2 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 })
2 months ago
weird
2 months ago
those two things should do the same thing
2 months ago
oh well
Status changed to Solved brody • about 2 months ago