I have a flask application that uses Redis for caching. I am getting the following error:
redis.exceptions.AuthenticationError: Authentication required.
I have also added the environment variables REDISHOST and REDISPORT and connecting to it by the following:
redis_client = redis.Redis(
host=os.environ.get("REDISHOST"), port=os.environ.get("REDISPORT")
)```
The application is open source and here's the app.py file: https://github.com/hemanth-kotagiri/sgpa-rest-api/blob/master/app.py
I tried looking up redis documentation page in docs.railway.app but it doesn't provide a way to connect to it. Please help me out! Thanks in advance!