How to Connect Redis (Python)?

ederson-souza
PRO

7 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

chandrika
EMPLOYEE

7 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 7 months ago


ederson-souza
PRO

7 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 7 months ago


Status changed to Solved chandrika 7 months ago