flask-caching icon indicating copy to clipboard operation
flask-caching copied to clipboard

Connection Error with Special Characters In Password

Open Step1N opened this issue 6 months ago • 0 comments

While connecting with redis server with special character (containing '#' in this case) in password. It throws "WRONGPASS invalid username-password pair or user is disabled"

REDIS_SERVER="server host info" from urllib.parse import quote REDIS_PASSWORD=quote("assdf#sf!ewo") REDIS_URL = "".join(['rediss://:', REDIS_PASSWORD, '@', REDIS_SERVER, '/1']) CACHE_CONFIG: CacheConfig ={ 'CACHE_TYPE': "redis", 'CACHE_REDIS_URL': REDIS_URL, 'CACHE_KEY_PREFIX': 'cache_prefix_', 'CACHE_THRESHOLD': 100 }

For redis server am using aws elastic cache version 7.1.0

Expected: It should connect with server even special character in password

Environment:

  • Python version: 3.11
  • Flask-Caching version: 1.10.1

Step1N avatar Aug 07 '24 04:08 Step1N