Closed lord007tn closed 1 year ago
I'm using @fastify/autoload to load my plugins and they work just fine
an other problem after app.restart()
is that @fastify/redis seems to have an error that says connection is closed
and in the app.addOnRestartHook()
the newapp dosen't have the redis plugin loaded in it or any other plugin so i assume that @fastify/restartable is making a new fastify instance without using my factory function
@lord007tn Can you put the minimal reproducible example to the repo and share the link?
@ivan-tymoshenko this is where ia have a problem with redis https://github.com/lord007tn/fastify-reproducible-example
@ivan-tymoshenko i can't reproduce the Ajv problem but still have the main problem in the redis plugin
Prerequisites
Fastify version
4.18.0
Plugin version
2.1.0
Node.js version
18.x
Operating system
Windows
Operating system version (i.e. 20.04, 11.3, 10)
11
Description
redis connect but say "Connection is closed" after the app restart. and I can't make it connect again
err: { "type": "Error", "message": "Connection is closed.", .... }
I'm using @fastify/autoload to load my plugins and they work just fine an other problem after app.restart() is that @fastify/redis seems to have an error that says connection is closed
and in the app.addOnRestartHook() the new app dosen't have the Redis plugin loaded in it or any other plugin so i assume that @fastify/restartable is making a new fastify instance without using my factory function
Steps to Reproduce
https://github.com/lord007tn/fastify-reproducible-example this is my code that works fine before the restart and even with the first start:
Expected Behavior
i expect the app to reload again with no problem