On 28.05.2015 10:07, User123 wrote:
> I am not suppling any allupto parametr when doing ack. Is thats the cause.
>
> Where should it be provided for client or server?
>
> On Server I do this:
> delivery.Ack(true)
I'm referring to this documentation:
http://www.squaremobius.net/amqp.node/doc/channel_api.html#toc_73
I don't know Javascript, so I don't if it is the correct function to
look at.
This function takes a optional argument, allUpTo, which indicates if
previous messages should be acknowledged (if allUpTo is true) or not
(allUpTo is false or omitted).
I guess "delivery.Ack(true)" means allUpTo is true (though I may read
this incorrectly). In this case, when you acknowledge message #4,
message #3 is acknowledged at the same time. When you explicitely
acknowledge it again at the end, this raises an error because the server
doesn't know this message anymore.