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
Project ID:
702d396a-95bd-40d9-aefb-6919279b0e94
702d396a-95bd-40d9-aefb-6919279b0e94
This is definitely due to tls issues with the code.
![No description](https://cdn.answeroverflow.com/1177801423874965574/Screenshot_2023-11-24_at_6.42.05_PM.png)
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](https://cdn.answeroverflow.com/1177801583082352680/Screenshot_2023-11-24_at_6.42.33_PM.png)
the redis databases railway provides do not have tls
So I just have to use a third party one?
or turn off the tls requirement?
Making it undefined or {} seems to have the same issue
Not sure how to turn it off
can you connect to the database locally?
You mean can I connect to the prod redis on Railway on my localhost?
yes
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
can you try to add a 3 second sleep to your start command?
You mean my yarn start? How would I?
Isn't that what something like connectTimeout is for on the settings?
sleep 3 && yarn start