websocket server cannot connect to redis
ive a websocket server and a redis server hosted on railway. after the migration, my ws server can no longer connect to my redis server. ive tried both the redis url and redis private url but i get the same error:
36 Replies
Project ID:
57346011-633f-4c77-851f-83e2a6f54bc0
57346011-633f-4c77-851f-83e2a6f54bc0
can you connect to the database with something like dbgate?
ive tried connecting from local host with the redis url and it works fine
okay thats good
have you updated the environment variables you use?
yes. i went into my ws server environment variables and added the redis url as a reference variable
${{Redis.REDIS_URL}}
show me the client code that connects to redis please
if i run the ws server locally with this exact code with the REDIS_URL set to the one found in railway redis variables, it works fine
and can i see your service variables?
do you just mean these?
![No description](https://cdn.answeroverflow.com/1210385328893067264/image.png)
the redis url was cut off at the bottom. heres a better ss
![No description](https://cdn.answeroverflow.com/1210385516600500244/image.png)
these are service variables from the redis service, please show me the variables on your apps service
![No description](https://cdn.answeroverflow.com/1210385785015242794/image.png)
what is the raw value of the redis url
isnt that sensitive? can i post it here?