Closed anistark closed 1 year ago
This is not reproducable. Timeouts happen if the server is not reachable.
This is not reproducable. Timeouts happen if the server is not reachable.
But I'm able to connect to local redis server from node express codebase.
Did it work or did you close out of frustration?
no it worked. I realised it was unreachable to this server port cause of a proxy config. My bad. Apologies for inconvenience.
For anyone looking at this issue and unable to find an answer to their question, this is how I solved it:
So I thought registering the @fasitift/redis
plugin would automatically start a "Redis Server", but this is not the case. This only connects your Fastify instance and the externally setup Redis server to each other.
You can easily run a Redis server in the background with Docker.
Prerequisites
Fastify version
4.0.0
Plugin version
6.1.1
Node.js version
20
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
13
Description
Still getting
AVV_ERR_READY_TIMEOUT
on redis connection. Even though redis server is running locally.Here's my sample code:
Steps to Reproduce
Add the above code to plugin and run fastify server.
Expected Behavior
Should just connect to redis.