You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When not specifying the window parameter, the default window of 60 seconds is expected to be used.
However, it usese a timedelta type which causes a type error.
\Lib\site-packages\fastapi_redis_rate_limiter\redis_rate_limiter_middleware.py", line 53, in dispatch
key = f"{client_ip}:{int(time.time() // self.window)}"
TypeError: unsupported operand type(s) for //: 'float' and 'datetime.timedelta'
The text was updated successfully, but these errors were encountered:
When not specifying the window parameter, the default window of 60 seconds is expected to be used.
However, it usese a timedelta type which causes a type error.
\Lib\site-packages\fastapi_redis_rate_limiter\redis_rate_limiter_middleware.py", line 53, in dispatch
key = f"{client_ip}:{int(time.time() // self.window)}"
TypeError: unsupported operand type(s) for //: 'float' and 'datetime.timedelta'
The text was updated successfully, but these errors were encountered: