question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RateLimiterRedis outdated usage example

See original GitHub issue

I have been trying to use Redis Rate limiter for login attempts security.

But there is this error over here ->

his.client.multi(...).get(...).pttl is not a function Screenshot from 2022-05-20 15-06-29

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:4
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
animircommented, May 20, 2022

@Will @ruffolom @kb-0311 I think, RateLimiterRedis has never supported redis package 4.x.x. Could you try legacyMode ?

1reaction
kb-0311commented, May 23, 2022

Hey @animir ! Yes I was able to fix the issue with your soln above thanks! You can close this issue now

Read more comments on GitHub >

github_iconTop Results From Across the Web

Insurance Strategy · animir/node-rate-limiter-flexible Wiki
Any store limiter like RateLimiterRedis, RateLimiterMongo, ... When main limiter store up and running, it may be empty or with outdated consumed points ......
Read more >
How we scaled the GitHub API with a sharded, replicated rate ...
We had an old rate limiter that was simple enough: For every request, determine a “key” for the current rate limit; In Memcached,...
Read more >
Building a sliding window rate limiter with Redis
Maybe we could use MySQL or PostgreSQL? Yes, we could but then we would need a system that periodically removes outdated timestamps since ......
Read more >
Top 5 rate-limiter-flexible Code Examples - Snyk
To help you get started, we've selected a few rate-limiter-flexible examples, based on popular ways it is used in public projects. Secure your...
Read more >
Basic Rate Limiting Pattern | Redis
... that another 59 don't exist (it would have expired 58 minutes prior). ... By continuing to use this site, you consent to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found