Skip to content

Unexpected Behaviour - Timeout Log Error #232

@abbaty48

Description

@abbaty48

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions