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

Parse Error

Open GeoffreyPlitt opened this issue 8 years ago • 1 comments

I'm trying to use this library, and I have rabbitmq installed locally.

I do:

const stats = new amqpstats({
  hostname: 'localhost:5672'
})

stats.overview((err, res) => {
      console.log(err, res)
})

And I get "Parse Error" in a deep stacktrace in your lib. Please advise, thanks.

GeoffreyPlitt avatar Aug 30 '16 22:08 GeoffreyPlitt

Hi Geoffrey, had this problem too, turns out you have to specify the management port (15672) not 5672.

ancientz avatar Dec 17 '16 14:12 ancientz