You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered this error when receiving a message that had the replyTo (reply-to) field set. In that case, the message is treated as an RPC call. The amqp-ts library automatically sends the queue.activateConsumer onMessage function's return value to the sender (i.e. to wherever the replyTo field is set to). If your onMessage function doesn't return anything, you will get this error: "Queue.onMessage consumer function returned error: content is not a buffer module=amqp-ts".
// rpc server that returns a Message
queue.activateConsumer((msg) => {
var rpcParameters = msg.getContent();
return new Amqp.Message(rpcParameters.value, {});
});
because return value for reply queue will be stringified:
I am receiving the message, with all the right details, and then I am seeing this error. Any ideas?
The text was updated successfully, but these errors were encountered: