node-amqp icon indicating copy to clipboard operation
node-amqp copied to clipboard

Cannot reject and discard messages that cause type errors

Open renewooller opened this issue 10 years ago • 0 comments

I'm getting errors such as:

[Error: Unknown field value type 115]

and

[TypeError: First argument needs to be a number, array or string.]

The default behaviour is to requeue the message. eg basic.reject(true)

However, this causes to queue to backlog.

It would be great to be able to specify the behaviour of basic.reject(false) where the message is not requeued, but dead-lettered instead.

renewooller avatar Sep 10 '15 00:09 renewooller