Redis Client Error ConnectionTimeoutError: Connection timeout
I get a
Redis Client Error ConnectionTimeoutError: Connection timeout
when connecting to my redis instance (hosted on railway) in a railway deployment using the public url. Im able to connect to the redis instance from my local machine.21 Replies
Project ID:
b820c80e-50e9-475a-85c6-89832fccdd8c
b820c80e-50e9-475a-85c6-89832fccdd8c
please use the private network to connect to the databases when deployed to railway
https://i.mrxbox98.me/file/2024/07/chrome_Hym45rvlrB.png Still facing the same issue
show me the client code please
https://i.mrxbox98.me/file/2024/07/Code_SRfGrtmhIO.png blurred part is the redis private url
please use environment variables
Same issue
are you using reference variables as well?
Yes
show me how you have done that please
okay and show me your client code now
what version of the redis package are you using?
latest, 4.6.15
Solution
are you on the v2 runtime?
No, should I switch to it?
yes
worked ty
no problem