Redis getaddrinfo ENOTFOUND
niemakestuff
HOBBYOP

4 months 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

4 months 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.


4 months ago

According to the docs, family must be set to 0


4 months ago

Have you tried that?


4 months ago

That's only for ioredis


4 months ago

oh, true


niemakestuff
HOBBYOP

4 months ago

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


niemakestuff
HOBBYOP

4 months 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


4 months ago

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


Status changed to Solved brody 4 months ago


Loading...