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 after redis reconnect #32

Open
Yangruipis opened this issue Mar 31, 2023 · 0 comments
Open

Error after redis reconnect #32

Yangruipis opened this issue Mar 31, 2023 · 0 comments

Comments

@Yangruipis
Copy link
Contributor

description

After redis server reconnected, the redis lua script should be load again.

log

  File "/usr/local/lib/python3.10/site-packages/fastapi/dependencies/utils.py", line 543, in solve_dependencies
    solved = await call(**sub_values)
  File "/usr/local/lib/python3.10/site-packages/fastapi_limiter/depends.py", line 50, in __call__
    pexpire = await self._check(key)
  File "/usr/local/lib/python3.10/site-packages/fastapi_limiter/depends.py", line 29, in _check
    pexpire = await redis.evalsha(
  File "/usr/local/lib/python3.10/site-packages/redis/asyncio/client.py", line 514, in execute_command
    return await conn.retry.call_with_retry(
  File "/usr/local/lib/python3.10/site-packages/redis/asyncio/retry.py", line 59, in call_with_retry
    return await do()
  File "/usr/local/lib/python3.10/site-packages/redis/asyncio/client.py", line 488, in _send_command_parse_response
    return await self.parse_response(conn, command_name, **options)
  File "/usr/local/lib/python3.10/site-packages/redis/asyncio/client.py", line 535, in parse_response
    response = await connection.read_response()
  File "/usr/local/lib/python3.10/site-packages/redis/asyncio/connection.py", line 864, in read_response
    raise response from None
redis.exceptions.NoScriptError: No matching script. Please use EVAL.
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