Failed To Connect to the redis container
ntwari-egide
HOBBYOP
a year ago
why is this redis working when I use it locally, but it can not work on my railway deployed the same app :
REDIS_URL="redis://default:*******************"
WORKER_HOST="redis://default:***************/1"
Anyone successfully connect their backend apis on prod with railway redis ?
I am getting this error:
[Nest] 12 - 11/28/2024, 2:47:52 PM ERROR [RedisCachingService] Error: connect ETIMEDOUT
[Nest] 12 - 11/28/2024, 2:47:52 PM WARN [RedisCachingService] Redis connection closed
[Nest] 12 - 11/28/2024, 2:47:52 PM WARN [RedisCachingService] Reconnecting to Redis...
1 Replies
brody
EMPLOYEE
a year ago
Hello,
Please make sure you are using reference variables -
https://docs.railway.com/guides/variables#referencing-another-services-variable