slowapi
slowapi copied to clipboard
Async methods as Callable arguments, are not supported.
Describe the bug
Limiter.limit: Callable params (e.g: exempt_when) won't affect if are Async.
To Reproduce Show us your code, only copy the relevant parts, the shorter it is, the easier it is to help you.
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Your app (please complete the following information):
- fastapi or starlette?
- Version?
- slowapi version (have you tried with the latest version)?
Additional context Add any other context about the problem here.