
{"id":5139,"date":"2024-10-23T21:45:56","date_gmt":"2024-10-24T01:45:56","guid":{"rendered":"https:\/\/ikriv.com\/blog\/?p=5139"},"modified":"2024-10-23T21:45:56","modified_gmt":"2024-10-24T01:45:56","slug":"rabbitmq-misleading-error-message-on-double-nack","status":"publish","type":"post","link":"https:\/\/ikriv.com\/blog\/?p=5139","title":{"rendered":"RabbitMQ: misleading error message on double [N]ack"},"content":{"rendered":"<p>Our RabbitMQ client written in Go failed with the following error message:<\/p>\n<p><code>rabbitmq | 2024-10-23 17:54:01.311544+00:00 [error] operation basic.ack caused a channel exception precondition_failed: unknown delivery tag {message_tag}<\/code><\/p>\n<p>Taken at the face value, this would seem that we were trying to ACK a message that was never sent. In reality, due to a bug we were sending a NACK followed by an ACK on the same message. Yes, technically it&#8217;s possible that Rabbit has removed the message after the NACK and forgot all about it, but the message is nevertheless misleading. I am not sure whether it pertains only to Go client or to any RabbitMQ client, will probably try that later.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Our RabbitMQ client written in Go failed with the following error message: rabbitmq | 2024-10-23 17:54:01.311544+00:00 [error] operation basic.ack caused a channel exception precondition_failed: unknown delivery tag {message_tag} Taken at <a href=\"https:\/\/ikriv.com\/blog\/?p=5139\" class=\"more-link\">[&hellip;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"Layout":"","footnotes":""},"categories":[4],"tags":[],"class_list":["entry","author-ikriv","post-5139","post","type-post","status-publish","format-standard","category-hack"],"_links":{"self":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5139","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5139"}],"version-history":[{"count":1,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5139\/revisions"}],"predecessor-version":[{"id":5140,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5139\/revisions\/5140"}],"wp:attachment":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5139"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}