Lua script takes non integer argument as input which causes random error on user supplied input
The argument 1 used in the INCRBY statement in the Lua script can be anything and not necessarily an integer.

https://github.com/animir/node-rate-limiter-flexible/blob/d4e26c0748e9213b5646694f8a3d46db8ba56824/lib/RateLimiterRedis.js#L5

This will cause "“ERR value is not an integer or out of range script: <hashvalue of the luascript>, on @user_script:1. ” 

The problems : 
1. No one knows <hashvalue of the luascript> this is a lua script excplicity.
2. Which of the lua script commands causes this.
3. Based on my understanding we set points to IRateLimiterOptions and this points value is divided by the allowedrequests. If points/allowedrequests gives a decimal number. This error will occur.
4. This will occur solely based on the value of allowedrequests and will appear as a random issue.

Solution : 
1. Make sure to use a Math.floor option in consume function for pointstoconsume. https://github.com/animir/node-rate-limiter-flexible/blob/d4e26c0748e9213b5646694f8a3d46db8ba56824/lib/RateLimiterRedis.js#L80