Open sumbad opened 2 weeks ago
I don't think we support async-await
in onResponse
hook.
Thanks for your reply! Is there a way to get the response body from the upstream server and modify it before reply? I've used https://github.com/fastify/fastify-reply-from/issues/265 like an example, but there is async onResponse.
Prerequisites
Issue
Hello! Can someone clarify is it possible or not using async onResponse hook with
@fastify/reply-from
plugin? Sometimes with async onResponse in my logs I see error:My goal is changing a response body: