Skip to content
This repository was archived by the owner on Nov 23, 2022. It is now read-only.

On redis connection failure, it kills the application #77

Open
sanjitbauli opened this issue Aug 16, 2021 · 0 comments
Open

On redis connection failure, it kills the application #77

sanjitbauli opened this issue Aug 16, 2021 · 0 comments
Labels
good first issue Good for newcomers

Comments

@sanjitbauli
Copy link

When Redis connection fails, it kills the applications.
The expected behavior is, log some error or handle the exception somehow.

Here my requirement is, allow users actions when Redis connection fails. An option would be great if we can control this situation.
I am passing the client by creating like

redis.createClient({
    ...redisConfig
    })
    .on('error', (e) => {
        console.error('Redis error', e)
    })

but it is not handled by RateLimiterModule

Whereas i use the same client with another package rate-limiter-flexible and I have a way to handle the situation.

@onur-ozkan onur-ozkan added the good first issue Good for newcomers label Aug 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants