question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ASB: client just stops receiving (node-amqp10 version 3.1.3)

See original GitHub issue

On our production machine 3 times now, the receiver spontaneously stops working. New messages are delivered to the queue, but we never receive them from the ASB (receiver.on(‘message’… is not called anymore). No error, no nothing.

The first time it happened was after about a week uptime. After that it took 4 weeks before it stopped working and yesterday after only a couple of hours it happened again.

It can’t be anything in our own code, because the receiver looks like this (simplified):

receiver.on('message', function(message) {
    let link = this;
    log(`start receive ${message.properties.messageId}`);
    handleMessage(message);
    link.accept(message);
    log(`message ${message.properties.messageId} accepted`);
}

The log shows:

start receive xxxxx
message xxxxx accepted

And then when (even if it is only a minute later, so no timeout can cause the problem) another message is delivered to the queue it just stays there and nothing happens.

The big problem is that there is no error, so i cannot take action (in code or manually). I just have to keep an eye on the ASB queues and when it stops working i have to restart the application which solves the problem (because the connection is setup again).

Anyone else had this kind of problem?

Of course i could turn on DEBUG logging, but since it is not predictable when the problem occurs (it can take 4 weeks) and we process thousands of messages a day (4 topics for sending and 5 queues for receiving) in our application that would degrade performance i think and log files will be enormous.

I think cause of the problem must be in the ASB (where the connection just gets lost), because when the problem occurs we don’t get the normal timeout after 10 minutes of inactivity (the connection would be setup again and the problem would be temporary (still not nice, but not as bad as it is now)).

I’ll do some more research on this, but at the moment i don’t have an idea how to handle this problem.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:4
  • Comments:27 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
abhijeetahujacommented, Nov 9, 2017

any updates on this? I am facing the exact same issue.

2reactions
amarzaverycommented, Feb 8, 2018

@njLT Some fixes were made in the 3.6.0 version of node-amqp10. Try using that. I still believe this looks like a service side issue since you were getting this error while using the http based azure-sb library and this library as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Questions | American Savings Bank Hawaii
Have questions about an ASB personal or business account? Need information on banking services, lines of credit or home loans? ASB has answers!...
Read more >
Online Banking - Security | American Savings Bank Hawaii
Secure Access Code is a code that is required to access your accounts via Online Banking for the first time from any new...
Read more >
Contact Us | American Savings Bank Hawaii
Our helpful and knowledgeable teammates are here for you. Answer a few questions and we'll find the right solution for you!
Read more >
Online Banking | American Savings Bank Hawaii
Receive access to funds for immediate use or an unexpected expense. Lines of Credit. Finance your next milestone and start building your financial...
Read more >
Information Security, Fraud and Privacy Hub
If someone contacts you claiming to be from ASB and asks for your account information or payments of any kind, it may be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found