Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8640251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:14:04+00:00 2026-06-12T11:14:04+00:00

I am writing a Node.js application that relies on RabbitMQ. I’m using node-amqp as

  • 0

I am writing a Node.js application that relies on RabbitMQ. I’m using node-amqp as the library of choice to connect to RabbitMQ.

Once I have established a connection to RabbitMQ, first thing I am going to do is to create an exchange:

var options = { autoDelete: false, confirm: true, durable: true, type: 'direct' };
connection.exchange('myExchange', options, function (myExchange) {
  // ...
});

This works perfectly. As you can see, I am creating the exchange using confirm: true, hence I expect the exchange to be in confirm mode afterwards.

Now a problem appears once I try to publish a message:

var options = {};
myExchange.publish('', { data: 'foobar' }, options, function () {
  // ...
});

The problem is that the callback of the publish function is never called – although the message was successfully published (as I can see within RabbitMQ’s web management tool).

Did I understand confirm mode in a wrong way? Is this a bug with node-amqp?

Any help would be appreciated 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T11:14:06+00:00Added an answer on June 12, 2026 at 11:14 am

    Question answered in the appropriate GitHub issue: node-amqp on npm is an old version … current workaround is to use the master branch from GitHub directly.

    This means, use https://github.com/postwait/node-amqp/tarball/master when installing using npm.


    Update November 2013

    As I was using RabbitMQ again these days (about one year after my original question), I thought it might be a good idea to give an update on the status quo of node-amqp.

    Unfortunately the state of node-amqp is exactly the same as a year ago: The published version from npm is hardly usable. Some of the bugs I encountered a year ago are still there (including the one from my question), so the given workaround is still valid: Get the latest master from GitHub.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I am writing a mac application that parses SF Giants baseball statistics using
I'm writing a Node.js application that makes an HTTP request, and then depending on
I have an application that I am currently writing that works by iterating through
I'm writing a Node.JS application that will store chat logs to a datastore (i.e.
I'm writing a node.js application that makes a get request to pingdom; but keep
I am writing a node js application. I am using request and cheerio to
I'm writing my first distributed erlang application, and I notice that I have to
I'm writing a web application using node.js & express to provide a real-time aprs
I have an application that uses the node twit module that is available via
I am writing a node app that needs to remember data across connection iterations

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.