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
We've currently updated our environment from Symfony 5.3 to 5.4 and are expieriencing strange RateLimiter errors when using sliding_window setting. When using Symfony 5.3 there were zero problems with using sliding_window.
We are using Symfony for an API backend and the error occurs after 1-2h of runtime. Which is really strange... :(
The logfile states the following error:
Exception occurred: Return value of Symfony\Component\RateLimiter\Policy\SlidingWindow::getRetryAfter() must be an instance of DateTimeImmutable, bool returned (Class: TypeError) Trace: #0 /var/www/vhosts/backend/sources/vendor/symfony/rate-limiter/Policy/SlidingWindowLimiter.php(77): Symfony\Component\RateLimiter\Policy\SlidingWindow->getRetryAfter()
Thanks a lot for your blazingly fast response. I had updated our environment before the weekend, so it might be that I didn't have the 5.4.3 version yet - well, I wasn't: symfony/rate-limiter v5.4.2 ! v5.4.3.
Sorry for the duplicate Issue. I've searched several times but may have used the wrong keywords.
I think we can consider this as fixed then. :)
Symfony version(s) affected
5.4.*
Description
We've currently updated our environment from Symfony 5.3 to 5.4 and are expieriencing strange RateLimiter errors when using
sliding_window
setting. When using Symfony 5.3 there were zero problems with usingsliding_window
.We are using Symfony for an API backend and the error occurs after 1-2h of runtime. Which is really strange... :(
The logfile states the following error:
How to reproduce
rate_limiter.yaml:
RateLimiter in CustomAuthenticator:
Possible Solution
When using
fixed_window
instead, the error doesn't occur and everything works smooth.Additional Context
No response
The text was updated successfully, but these errors were encountered: