trpc-openapi icon indicating copy to clipboard operation
trpc-openapi copied to clipboard

fix: fastify ERR_HTTP_HEADERS_SENT is reply is not awaited

Open vafanassieff opened this issue 2 years ago • 1 comments

Hey there,

I was trying to use trpc-openapi with fastify-session, and I was wondering why I have ERR_HTTP_HEADERS_SENT when sending request to trpc-openapi.

I found that @mgcrea/fastify-session tried to save multiple times the session.

fastify reply.send call must be awaited to ensure the request is done.

vafanassieff avatar Dec 14 '23 13:12 vafanassieff

@jlalmes Is there anything I can do help you ?

vafanassieff avatar Jan 31 '24 16:01 vafanassieff