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
evalsha() got an unexpected keyword argument 'keys' #18
Comments
Upgrade fastapi-limiter |
Is this issue resolved? Still facing this. |
@ssinghgc |
You should upgrade fastapi-limiter to v0.1.4 or modify the original code like this: rate_key = await identifier(request)
key = f"{FastAPILimiter.prefix}:{rate_key}:{index}"
pexpire = await redis.evalsha(
FastAPILimiter.lua_sha, 1, key, str(self.times), str(self.milliseconds)
) |
@MarcWarrior fastapi-limiter to v0.1.4 still have this issue, but will fix with your snippets. Can you update this package to pipy |
Btw, https://github.com/aio-libs/aioredis-py is being merged into |
I just came around the same issue and discovered a workaround that some of you might find helpful. Runs like a charm for me now =) |
Yup is relevant to #20 Is the repo owner no longer maintaining this project? |
check your aioredis version, this version(fastapi-limiter on pypi == 0.1.4) doesn't work with aioredis >= 2.0 for version 2.0 and above, I think the maintainer must change the below code:
TO
|
HI:
Fist of all, I want to appreciate that you build such awesome tool.
When i use this library encounter some problem like title, which code write on
Environments:
The text was updated successfully, but these errors were encountered: