-
-
Notifications
You must be signed in to change notification settings - Fork 37
Description
Prerequisites
- I have written a descriptive issue title
- I have searched existing issues to ensure the bug has not already been reported
Fastify version
5.5.0
Plugin version
7.0.2
Node.js version
24.5.0
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
archcraft 25.04
Description
An unexpected behaviour occurs when registering the plugin, causing a plugin timeout with a log error.
Plugin did not start in time: '@fastify/redis'. You may have forgotten to call 'done' function or to resolve a Promise"}
for example: registering the plugin as in
fastify.register(fastifyRedis)
or by wrapping it in a plugin, as in:
export default fastifyPlugin(async function redisPlugin(instance) { instance.register(fastifyRedis, { host: "0.0.0.0", }); });
or
export default fastifyPlugin(function redisPlugin(instance, options, next) { instance.register(fastifyRedis, { host: "0.0.0.0", }); next(); });
Both cause the log error and prevent some features from working accurately, like redis.set();
Link to code that reproduces the bug
https://github.com/fastify/fastify-redis/issues
Expected Behavior
No response