FGRibreau / FGRibreau/node-amqp-tool

Error: Connection ended: possibly due to an authentication failure

Open
#18 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
26
Forks
13
PR merge metrics
No merged PRs in 30d

Description

I'm running amqp-tool against rabbitmq 3.2.4 using an authenticated user but always fails. Logging in the web UI works though:
```
amqp-tool -vvvv --host localhost --port 32781 -u jgaspar -p 123456 -q test --count 1 --export dump.json
RabbitMQ :: error Error: Connection ended: possibly due to an authentication failure.
at Connection. (/usr/lib/node_modules/amqp-tool/node_modules/amqp/lib/connection.js:283:26)
at emitNone (events.js:106:13)
at Connection.emit (events.js:208:7)
at emitNone (events.js:111:20)
at Socket.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
RabbitMQ connection closed :: close false
```

When not specifying a user it works fine with default one (guest/guest). Rabbitmq is running inside a vagrant box and I'm forwarding the port, hence it's using 32781.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/57799315-error-connection-ended-possibly-due-to-an-authentication-failure?utm_campaign=plugin&utm_content=tracker%2F2158434&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F2158434&utm_medium=issues&utm_source=github).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.