slowapi icon indicating copy to clipboard operation
slowapi copied to clipboard

Async methods as Callable arguments, are not supported.

Open IPENprj opened this issue 7 months ago • 0 comments

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.

IPENprj avatar Jun 07 '25 08:06 IPENprj