Hello everyone,
I am developing a flow that aims to divide a huge message into smaller messages. I have achieved all the logical part for dividing the msg, however, when sending all those small messages to a http response node I get the following error: "Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client". Of couse, I specified the headers in the http response node, but without any success so far.
It's important to mention that I get this error after the 1st small message is sent, so yeah, basically the following messages trigger this error.
Any idea how to resolve this error ?
Things that I've tried so far:
-Specify the headers in the http response.
-Put a function before the response node and specify the headers of the msg in the function itself.
Thank you !