Can I specify RabbitMQ credentials in node.js? -
I started using rabbit.js to connect to RabbitMQ from a node.js application.
I error message: Channel discontinued by server: 403 (Access-Refuge) with message "ACCESS_REFUSED-Operation is not allowed on default exchange"
Channel.C.cept (/. ../rabbit.js/node_modules/amqplib/lib/channel.js:398:24)
On Connection. My Acceptance (as Accepted) (/.../rabbit.js/node_modules/amqplib/lib /connection.js:63:33)
at Socket.go (/.../rabbit.js/node_modules/amqplib/lib/connection.js:448:48) on the socket. EventEmitter.emit (Events.js: 92: 17)
...
Which is expected, since I am using RabbitMQ to enable publishers and customers to use To use the message queue is configured to provide credentials before, and the guest account has been disabled.
There is no mention of credentials Google search specifies rabbit.js credentials ???? And "Rabbit.JS login password" ??? Were inconclusive.
What the rabbit Supported by Js? If not, do other RabbitMQ clients support them?
So I have never used rabbit.js myself, but after diving in code , It seems to be used. This parsing code can be seen and it seems that this standard is calling the node. So maybe you can try something:
amqp: // user: pass@host.com/vhost Hope it helps !
Cheers.
Comments
Post a Comment