Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Connection Error with Special Characters In Password #589

Open
Step1N opened this issue Aug 7, 2024 · 0 comments
Open

Connection Error with Special Characters In Password #589

Step1N opened this issue Aug 7, 2024 · 0 comments

Comments

@Step1N
Copy link

Step1N commented Aug 7, 2024

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

No branches or pull requests

1 participant