Hi everyone,
I have a somewhat lengthy- and complex flow that I am willing to share if the troubleshooting process requires it; but for now I will do a simplification/get rid of the unimportant details.
Basically I have a flow
http in
node- that forwards the incoming request into some
function
nodes - that then call some
http request
and validate their response - and then return the original msg with a payload (obtained from steps [2/3]) to a
http response
node (this response node being "the pair" of thehttp in
of step [1])
For no apparent reason; after the application has been running for a while; the http response
node of step [4] starts reporting the error. The error happens 100% of the time/for each message.
Error: Callback called multiple times
The error DOES NOT cause the http response
to stop working: the node is still returning the http request to the requester. It is just annoying, is polluting logs and I suspect (can't confirm) is causing some kind of resource leak that causes the application to break/crash after some time.
What gives? Is there any known reason that may cause this behavior?
Some additional info:
1- The http response
is indeed only being called once (at the end of the flow).
2- The original message from http in
(with properties _msgid, req, res) is the same message that goes into http response
node.