Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Error when using redis without password with Pydantic.RedisDsn #106

Open
takentui opened this issue May 30, 2022 · 0 comments
Open

Error when using redis without password with Pydantic.RedisDsn #106

takentui opened this issue May 30, 2022 · 0 comments

Comments

@takentui
Copy link

Hello, I use the standard pydantic string generation mechanism for connections (AnyUrl), everything works correctly until I try to debuild the object. Creation example:

obj = Pydantic.RedisDsn('redis://localhost:6432')
self._cache_lock_manager = aioredlock.Aioredlock(
            redis_connections=[obj]
        )

I have a problem when destroy my lock manager:

await self._cache_lock_manager.destroy()
....
/usr/local/lib/python3.9/site-packages/aioredlock/algorithm.py:231: in destroy
    self.log.debug('Destroying %s', repr(self))
/usr/local/lib/python3.9/site-packages/aioredlock/utility.py:12: in clean_password
    details = [clean_password(x, cast=type(x)) for x in details]
/usr/local/lib/python3.9/site-packages/aioredlock/utility.py:12: in <listcomp>
    details = [clean_password(x, cast=type(x)) for x in details]
/usr/local/lib/python3.9/site-packages/aioredlock/utility.py:15: in clean_password
    return cast(details)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant