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

EPIPE Write Error when calling connection.publish

Open ekryski opened this issue 12 years ago • 4 comments

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);

ekryski avatar Mar 26 '13 20:03 ekryski

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.

ekryski avatar Mar 26 '13 21:03 ekryski

Hi,

Was a PR submitted for this? I believe that we are currently encountering this issue as well

paulbjensen avatar Jul 23 '14 16:07 paulbjensen

I didn't but I had other issues with this library so I now use http://www.squaremobius.net/amqp.node/

ekryski avatar Jul 23 '14 16:07 ekryski

Thanks for the tip, I'll take a look into that.

paulbjensen avatar Jul 23 '14 16:07 paulbjensen