Redis getaddrinfo ENOTFOUND
niemakestuff
HOBBYOP

22 days ago

My problem is the same as this: https://discord.com/channels/713503345364697088/1421551356879175853/1421551356879175853

I am using this library: https://github.com/redis/node-redis

Using family: 6 doesnt do anything :(

Solved

8 Replies

niemakestuff
HOBBYOP

22 days ago

I can connect to Redis using the public url but I would prefer to use the internal url

I've tried different methods of connecting but nothing works. I am not really sure what is the problem.


medim
MODERATOR

22 days ago

According to the docs, family must be set to 0


medim
MODERATOR

22 days ago

Have you tried that?


brody
EMPLOYEE

22 days ago

That's only for ioredis


medim
MODERATOR

22 days ago

oh, true


niemakestuff
HOBBYOP

21 days ago

i believe it is set to 0 by default on the lib im using


niemakestuff
HOBBYOP

21 days ago

i still couldnt find a way to make it work so I ended up switching to ioredis and it finally worked
not sure whats up with the previous lib i was using


brody
EMPLOYEE

21 days ago

It may have been a super old version that never had support for IPv6.


Status changed to Solved brody 21 days ago


Loading...