R
Railway9mo ago
manuai

Redis Connection refused

I keep getting ECONNREFUSED: Failed to connect when using private Redis URL to connect. console.info("REDIS URL", process.env.REDIS_URL) const redisClient = redis.createClient({ url: process.env.REDIS_URL, }); Any ideas ?
7 Replies
Percy
Percy9mo ago
Project ID: 53850635-7515-4418-a0d9-f57560f8c9d3
manuai
manuaiOP9mo ago
53850635-7515-4418-a0d9-f57560f8c9d3 FYI: Variable is named REDIS_URL but it indeed point to the private Redis URL I got the issue fixed once by deleting and recreating the redis instance but now on every redeploy It will stop working again. Is it possible that there dangling container somewhere ? I noticed DB connection also go much slower
Brody
Brody9mo ago
is this ioredis?
manuai
manuaiOP9mo ago
No just redis official client
Brody
Brody9mo ago
can you connect to redis locally from it's public url?
manuai
manuaiOP9mo ago
I will try that Now connection seems better since I've switched to public URL Private URL was always getting rejected
Brody
Brody9mo ago
go back to using the private url and then try adding a 3 second sleep to your start script
Want results from more Discord servers?
Add your server