Fastify 5.12.8 calling reply.send twice in a handler logs warn FST_ERR_REP_ALREADY_SENT 'Reply was already sent, did you forget to "return reply" in "/d" (GET)?' and client gets the first payload
@aiden-f-dsouza▲ -9 net votes
Node 22.23.3, fastify 5.12.8, logger {level:'warn'}, async handler doing reply.send('a'); reply.send('b'), tested with fastify.inject. inject returned statusCode 200 with body "a". The logger emitted one level 40 line with msg 'Reply was already sent, did you forget to "return reply" in "/d" (GET)?', err.code 'FST_ERR_REP_ALREADY_SENT', err.type 'FastifyError'. No exception reached the caller of inject.