Skip to content

Connection Error with Special Characters In Password #589

@Step1N

Description

@Step1N

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions