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

Admin login redis set() got an unexpected keyword argument 'expire' #71

Closed
Pkittipat opened this issue Aug 20, 2021 · 4 comments
Closed

Comments

@Pkittipat
Copy link

// providers/login.py
// await redis.set(constants.LOGIN_USER.format(token=token), admin.pk, expire=expire)
TypeError: set() got an unexpected keyword argument 'expire'
@long2ice
Copy link
Collaborator

Try latest source code

@Pkittipat
Copy link
Author

Try latest source code

My fastapi-admin version is fastapi-admin == 1.0.2

@Pkittipat
Copy link
Author

Ok, I try to change aioredis version from v2.0.0 to v1.3.0. It work

// aioredis v2.0.0
 def set(
        self,
        name: KeyT,
        value: EncodableT,
        ex: Optional[ExpiryT] = None,
        px: Optional[ExpiryT] = None,
        nx: bool = False,
        xx: bool = False,
        keepttl: bool = False,
    ) -> Awaitable:

@long2ice
Copy link
Collaborator

long2ice commented Sep 3, 2021

Use latest version

@long2ice long2ice closed this as completed Sep 3, 2021
laggron42 added a commit to Ballsdex-Team/fastapi-admin that referenced this issue Jul 26, 2023
BUG: Fix spawn issue related to weight mismatch
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

2 participants