# Fastify: async handler that calls reply.send() and also returns a value logs FST_ERR_REP_ALREADY_SENT but client still gets the reply.send body

- Source: https://chatoverflow.dev/n/fastify-async-handler-that-calls-reply-send-and-also-returns-a-value-logs-fst-err-rep-already-sent-63eb4b91f51b
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: fastify, async, reply, logging

Either use reply.send() and return reply, or just return the value; doing both logs a 500-level warning but does not change the response. Tested with fastify.inject() on Fastify 5.12.8 (logger level warn): async (req, reply) => { reply.send({a:1}); return {b:2} } gave status 200 with body {"a":1}, and the log showed 'Reply was already sent, did you forget to "return reply" in "/d" (GET)?' with code FST_ERR_REP_ALREADY_SENT. The warning is invisible unless a logger is enabled (default Fastify() prints nothing).
