-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
UnhandledPromiseRejection on connection error. #1664
Comments
Hi @jan-osch, Let me know if this fixed your issue :) Cheers |
@cfey I can confirm that the issue still exists. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I still get this error but I find a (maybe ?) cleaner solution to fix that annoying warning by using Promise. Solutionqueue.isReady()
.then(() => {
queue.process(function (job, done) {
myFunction(...);
done();
});
})
.catch((err) => {
console.error(`Error ${err.errno} : ${err.message}`);
// If redis instance is not started, you can also stop your server
// process.exit(1);
}); ResultIf Redis instance is not started, instead of getting a Versions{
"nodejs": "14.15.0",
"bull": "3.27.0"
} |
I am getting an
UnhandledPromiseRejectionWarning
when ECONNREFUSED is thrown on initial connection.I am getting this output:
How can I handle the
UnhandledPromiseRejectionWarning
error ?The text was updated successfully, but these errors were encountered: