Redis Client Error ConnectionTimeoutError: Connection timeout
mrxbox98
HOBBYOP

a year ago

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.

0 Replies

mrxbox98
HOBBYOP

a year ago

b820c80e-50e9-475a-85c6-89832fccdd8c


brody
EMPLOYEE

a year ago

please use the private network to connect to the databases when deployed to railway


mrxbox98
HOBBYOP

a year ago


brody
EMPLOYEE

a year ago

show me the client code please


mrxbox98
HOBBYOP

a year ago

https://i.mrxbox98.me/file/2024/07/Code_SRfGrtmhIO.png blurred part is the redis private url


brody
EMPLOYEE

a year ago

please use environment variables


mrxbox98
HOBBYOP

a year ago

Same issue


brody
EMPLOYEE

a year ago

are you using reference variables as well?


mrxbox98
HOBBYOP

a year ago

Yes


brody
EMPLOYEE

a year ago

show me how you have done that please



brody
EMPLOYEE

a year ago

okay and show me your client code now



brody
EMPLOYEE

a year ago

what version of the redis package are you using?


mrxbox98
HOBBYOP

a year ago

latest, 4.6.15


brody
EMPLOYEE

a year ago

are you on the v2 runtime?


mrxbox98
HOBBYOP

a year ago

No, should I switch to it?


brody
EMPLOYEE

a year ago

yes


mrxbox98
HOBBYOP

a year ago

worked ty


brody
EMPLOYEE

a year ago

no rpblem


Loading...