-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ioredis won't throw errors, prints to console instead - Unhandled error event: Error: connect ECONNREFUSED #1235
Comments
Experiencing the same issue, tried passing a reconnectOnError function but no use |
The proposed solution in #1209 seemed to resolve this for me. |
I don't see how this helps. Ioredis should throw an error so I could do something about it. |
@vktrl Redis extends redis.on('error', (e) => doSomething()) |
Oh, I see, thanks! |
And what can we do in redis.on('error' to make this stop? I tried .disconnect and .quit and nothing helps 😞 |
Error handling seems to be broken when trying to query a non-existent database. To reproduce:
Results in console getting flooded with:
Version 4.19.2
The text was updated successfully, but these errors were encountered: