Skip to content
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 + bluebird + 127.0.0.1 = connect ETIMEDOUT #1074

Closed
blat opened this issue Mar 9, 2020 · 2 comments
Closed

ioredis + bluebird + 127.0.0.1 = connect ETIMEDOUT #1074

blat opened this issue Mar 9, 2020 · 2 comments

Comments

@blat
Copy link

blat commented Mar 9, 2020

I have a weird bug with ioredis.

Here is my sample code:

const Redis = require('ioredis');
global.Promise = require('bluebird');
new Redis(6379, '127.0.0.1');

Connection fails:

Error: connect ETIMEDOUT
    at Socket.<anonymous> (node_modules/ioredis/built/redis/index.js:283:31)
    at Object.onceWrapper (events.js:422:28)
    at Socket.emit (events.js:316:20)
    at Socket._onTimeout (net.js:479:8)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7) {
  errorno: 'ETIMEDOUT',
  code: 'ETIMEDOUT',
  syscall: 'connect'
}

I'm using:

  • node 13.10.1
  • ioredis 4.16.0
  • bluebird 3.7.2

Those alternatives are working:

const Redis = require('ioredis');
new Redis(6379, '127.0.0.1');
const Redis = require('ioredis');
global.Promise = require('bluebird');
new Redis(6379, 'localhost');
@jehy
Copy link

jehy commented Mar 11, 2020

Seems like #977

@luin
Copy link
Collaborator

luin commented Apr 2, 2020

Closing this in favor of #977.

@luin luin closed this as completed Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants