-
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
UnhandledPromiseRejectionWarning: Error: connect ETIMEDOUT #1473
Comments
The only way you will get this error is if you are not running the Redis server on localhost and on default port 6379. |
Dude, as I wrote to you: The What an attitude... Just closing without handling something. Would you like to reopen this? |
Thing is, this is not a support forum. We will probably have one in the future. I rather spend my limited time fixing/implementing features than solving your specific code. |
I do not assume to have a support forum. But there are several closed issues which have the same problem. And none of them received real attention. Aparently this is a thing with Bull, but I guess you do not want to see this. My code above is a SUPER simple code (it just adds two numbers). But the connection to redis fails. With exact the same settings using ioredis directly I can connect and store values in Redis. But Bull fails to connect to the very same setup with the very same settings. I mean, if you do not want to spent time with this bug, sure... I will just look for another solution except Bull. |
You can try and run some of the sample codes to make sure your environment is setup correctly. If that worked then maybe go through the documentation to see what you're missing! The library is working perfectly for us as well as at least 1203 other libraries here in github (based on github)! maybe try adding the redis connection when you're creating the queue like the sample below: var videoQueue = new Queue('video transcoding', 'redis://127.0.0.1:6379');
var audioQueue = new Queue('audio transcoding', {redis: {port: 6379, host: '127.0.0.1', password: 'foobared'}}); // Specify Redis connection using object
|
Looks like an issue with ioredis when using bluebird:
It runs fine if you drop that bluebird line. The error is:
My setup:
|
@bendytree This ist the solution. Thank you very much. @manast and @ashkank83: I hope you now realize that you have been wrong. Maybe in future you will not be the arrogant anymore. |
@exislow how are we wrong? was it a bug with Bull or was it not? |
Description
Everytime I try to setup a worker (consumer) I get
UnhandledPromiseRejectionWarning: Error: connect ETIMEDOUT
.I have tried the examples from https://github.com/luin/ioredis#readme and everything works fine. But everytime I try to create a consumer with the same settings as the bare ioredis example I get the following exception.
Can somebody help me?
Minimal, Working Test code to reproduce the issue.
Bull version
bull: 3.10.0
node: 11.15.0
The text was updated successfully, but these errors were encountered: