-
Notifications
You must be signed in to change notification settings - Fork 30
Handling connection errors. #29
Comments
Is redis running? |
No. Therefore, the error is valid. I am not sure how to handle this error. |
This is a great utility and thanks for developing it, however not being able to catch connection errors/exception or having any way to catch promise rejection in case of connection failures cause the node to either exist or stoping responding. I also noticed redisPool takes any port/host without any validation , even if the connection is not stablished , no errors or method on failures are returned hence assuming the connection has successfully stablished, however the unhandled promised Error cause application not responsive. thanks again |
Thanks both for your feedback. I've identified the error, I just haven't had time to submit a PR. Will do that now. |
Filed a bug upstream, for reference: coopernurse/node-pool#273 |
What is the correct way to handle error while connecting or otherwise? I am running the code below against a un-started Redis on
localhost
.I get an error as follows:
And,
.catch()
or.then()
do not seem to be supported.So, how do we handle errors?
The text was updated successfully, but these errors were encountered: