How to Connect Redis (Python)?

ederson-souzaPRO

5 months ago

I'm trying to connect to Redis but without success.

I have two services. One is my Flask app and second is Redis.

I tried many things, including to pass the internal network address also the public, to REDIS_URI, also as a host but it doesn't work.

Solved

2 Replies

chandrikaEMPLOYEE

5 months ago

Hi Ederson! Could you try setting up a REDIS_URL in your flask application as follows:

redis://arbitrary_usrname:password@ipaddress:6379/0

https://stackoverflow.com/questions/44344628/how-to-create-a-redis-cloud-connection-url-with-an-auth-password

You can find the password and IP https://docs.railway.com/guides/redis#connect


Status changed to Awaiting User Response railway[bot] 5 months ago


ederson-souzaPRO

5 months ago

It was a dumb mistake. I forgot to put the internal network into Celery broker. Now is fixed. Tks


Status changed to Awaiting Railway Response railway[bot] 5 months ago


Status changed to Solved chandrika 5 months ago


How to Connect Redis (Python)? - Railway Help Station