Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consumer stopped polling for messages no error logs #28

Open
akash-rajput opened this issue May 31, 2022 · 3 comments
Open

Consumer stopped polling for messages no error logs #28

akash-rajput opened this issue May 31, 2022 · 3 comments

Comments

@akash-rajput
Copy link

I'm using @ssut/[email protected] with a FIFO queue. After running fine for few days the consumer stopped polling for messages without any error logs. The containing service has been up and running without any issues. None of the error handlers triggered.
Screenshot 2022-05-31 at 1 39 03 PM

  @SqsConsumerEventHandler(
    /** name: */ sqsQueueName,
    /** eventName: */ 'error',
  )
  public onError(error: Error, message: AWS.SQS.Message) {
    this.logger.log(message, 'Error message');
    this.logger.error(error, 'Error Exception');
  }

  @SqsConsumerEventHandler(
    /** name: */ sqsQueueName,
    /** eventName: */ 'processing_error',
  )
  public onProcessingError(error: Error, message: AWS.SQS.Message) {
    this.logger.log(message, 'Processing Error message');
    this.logger.error(error, 'Processing Error Exception');
  }

  @SqsConsumerEventHandler(
    /** name: */ sqsQueueName,
    /** eventName: */ 'timeout_error',
  )
  public onTimeoutError(error: Error, message: AWS.SQS.Message) {
    this.logger.log(message, 'Timeout Error message');
    this.logger.error(error, 'Timeout Error Exception');
  }
@akash-rajput
Copy link
Author

Could be related to the bug in underlying package: bbc/sqs-consumer#241

@vhd-luke
Copy link

Same issue here

@levanluu
Copy link

Can someone tell me how to fix this?

How to restart the instance is not a reasonable way in live environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants