node-amqp
node-amqp copied to clipboard
EPIPE Write Error when calling connection.publish
I'm trying to debug this. Not having much luck so far. Is anyone running into this issue?
My code is pretty simple:
var mqString = 'amqp://guest:guest@localhost:5672';
var mq = amqp.createConnection({url: mqString}, { defaultExchangeName: "amq.topic"});
var data = JSON.stringify({ foo: 'bar' });
mq.publish('foo', data);
I stumbled across this guy's hack and it fixes my problem. I'll look into the code and issue a patch but I wouldn't mind some feedback from one of the core maintainers.
Hi,
Was a PR submitted for this? I believe that we are currently encountering this issue as well
I didn't but I had other issues with this library so I now use http://www.squaremobius.net/amqp.node/
Thanks for the tip, I'll take a look into that.