jlalmes / trpc-openapi

OpenAPI support for tRPC 🧩
https://www.npmjs.com/package/trpc-openapi
MIT License
2.18k stars 147 forks source link

fix: fastify ERR_HTTP_HEADERS_SENT is reply is not awaited #428

Open vafanassieff opened 9 months ago

vafanassieff commented 9 months ago

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 commented 8 months ago

@jlalmes Is there anything I can do help you ?