Closed kevbarns closed 9 months ago
Thanks for reporting!
Can you provide steps to reproduce? We often need a reproducible example, e.g. some code that allows someone else to recreate your problem by just copying and pasting it. If it involves more than a couple of different file, create a new repository on GitHub and add a link to that.
Also, new major version does away with tiny-lru, can you try that one?
Thanks @gurgunday, thaht might just fix my issue !
Prerequisites
Fastify version
4.23.2
Plugin version
8.0.3
Node.js version
20
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
alpine
Description
We are experiencing an issue coming from the rate-limiter plugin when facing a lot of request on a single endpoint, more specifically from the tiny-lru package here :
Logs comes from sentry detection.
Steps to Reproduce
Set a basic endpoint with the following rate limit configuration and target it with enough request to trigger the rate limit :
Expected Behavior
no issues