Closed ChristoPy closed 1 year ago
Unfortunately I don't have an ipv6 redis instance available, but I suspect it's something to do with the ready event not being emitted for whatever reason.
Would you like to send a PR?
Yes, I will
@mcollina There are a few people complaining about it on ioredis
.
Seems like redis can't resolve the DNS even using family: 6
.
My mistake, I could've checked it directly on ioredis
before opening this issue.
I'll close it here, since there is no problem with the plugin.
Prerequisites
Fastify version
4.0.0
Plugin version
6.1.0
Node.js version
16
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
20.04
Description
I cannot connect to an IPv6 Redis instance.
My Redis instance in production uses IPv6, so for this I changed the connection options to use
family: 6
. Which works nicely pointing to my local environment. But if I point to the production Redis instance, the following error shows up:README mentions that it is normal and it will not fail silently. I could be using a wrong config here.
But strangely, if I connect directly using
ioredis
with the exact same configs it works normally.Steps to Reproduce
My Redis plugin:
The API is the TypeScript boilerplate generated with Fastify CLI.
Expected Behavior
I expected to be able to connect using the option
family:6
which can be done in another service using plainioredis
with the exact same configs.