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
@rodrigopedra Yes; I'm using that workaround (#45088 (comment)) having just encountered the issue for the first time. If it's challenging to fix, it probably warrants a note in the docs; it took me quite some time to realize there was something framework-level happening.
Description:
Reopening #45088 (closed because issue was originally filed under Laravel 8.x). This issue persists in Laravel 10.
Using multiple rate-limiters that use the same key does not work as expected. If the key is the same, only the first rate limiter is ever triggered.
Additionally, because both limiters use the same key, the count of remaining requests is decremented by the amount of times the same key is used.
Steps To Reproduce:
Define a simple rate limiter that returns an array of limits, using the same key.
The above code will only apply the first limit, but the "Remaining" is decremented by two because both use the same key.
The text was updated successfully, but these errors were encountered: