Redis TLS

How do I get a TLS url for Redis through railway? IORedis refuses to connect with a normal redis:// url on prod (I'm getting the ERR Connect issue), which is what it by default generates (as far as I can tell, there is no TLS version)
27 Replies
Percy
Percy10mo ago
Project ID: 702d396a-95bd-40d9-aefb-6919279b0e94
quinnvaughn
quinnvaughn10mo ago
702d396a-95bd-40d9-aefb-6919279b0e94
quinnvaughn
quinnvaughn10mo ago
This is definitely due to tls issues with the code.
No description
quinnvaughn
quinnvaughn10mo ago
Which it works fine on Heroku (I'm attempting at using Railway instead) with a rediss:// url so that's the main issue.
No description
Brody
Brody10mo ago
the redis databases railway provides do not have tls
quinnvaughn
quinnvaughn10mo ago
So I just have to use a third party one?
Brody
Brody10mo ago
or turn off the tls requirement?
quinnvaughn
quinnvaughn10mo ago
Making it undefined or {} seems to have the same issue Not sure how to turn it off
Brody
Brody10mo ago
can you connect to the database locally?
quinnvaughn
quinnvaughn10mo ago
You mean can I connect to the prod redis on Railway on my localhost?
Brody
Brody10mo ago
yes
quinnvaughn
quinnvaughn10mo ago
Like that code works fine with just my local computer redis I will check Ok it seems to work But I've tried setting tls to undefined and got the same connection error on prod
Brody
Brody10mo ago
can you try to add a 3 second sleep to your start command?
quinnvaughn
quinnvaughn10mo ago
You mean my yarn start? How would I? Isn't that what something like connectTimeout is for on the settings?
Brody
Brody10mo ago
sleep 3 && yarn start
Want results from more Discord servers?
Add your server