noodlefrenzy / node-amqp10

amqp10 is a promise-based, AMQP 1.0 compliant node.js client
MIT License
134 stars 56 forks source link

Have some problems lately with Azure Service Bus #372

Open vIceBerg opened 6 years ago

vIceBerg commented 6 years ago

Hi!

I'm using the 3.4 version for a while and this version worked well. But for some weeks now, I have a lot of troubles...

My app is working file for days, but at some point, the send method's promise never get resolved or rejected and the message is never sent to Azure.

I have to kill my app and restart it to make it works again.

I have event listeners on errorReceived and detached and they are not getting called.

My code is very simple: return queuer.send(msg).then((state) => { logger.log(messageType, innerMessageId, via, retries, 'Message sent', state); }).catch((err) => { logger.log(messageType, innerMessageId, via, retries, 'Error while sending message', err); throw err; });

What should I do to get more detailed infos about what's going on? I really need to get this fixed asap.

Thanks for guiding me...

VB

amarzavery commented 6 years ago

These are typical issues seen in node-amqp10. It happens due to the library falling in incorrect state. Moreover node-amqp10 is not being actively maintained. We are developing an sdk for service-bus. It is developed on top of rhea. There is an open PR.

We expect to release a version for Azure ServiceBus by the end of this month. Hopefully that can help solve some of your issues.

vIceBerg commented 6 years ago

Hi.

Thanks, I'll keep an eye on this... and check to rewrite my code with rhea.

Meanwhile, is there something I could do to minimize that problem?

Thanks

VB