You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ECS Fargate (spot/regular) that listens to SQS messages within my AWS account. Really nothing special.
This is my setup:
this.sqsConsumer=Consumer.create({queueUrl: eventBusSqsUrl,handleMessageBatch: async(messages: Message[])=>this.handleSqsMessages(messages),batchSize: 10,visibilityTimeout: 30,// In secondswaitTimeSeconds: 15,// Long polling interval (in seconds)terminateVisibilityTimeout: false// Do not terminate visibility timeout on processing error,});this.sqsConsumer.on("error",error=>{this.logger.error(error,"Error in the SQS consumer");});this.sqsConsumer.on("processing_error",error=>{this.logger.error(error,"Processing error");});this.sqsConsumer.on("timeout_error",error=>{this.logger.error(error,"Timeout error");});
I'm also listening to the shutting down of the server signals and stopping the consumer from listening. Using NestJS I do this:
The message printed is Error in the SQS consumer, which we get from the general error event and not the timeout_error event. would expect it to arrive from. Why is that? Could it be a bug?
Hey, so this looks like an issue on AWS' side and we can't support their services.
In terms of the error sent, all errors from SQS will come through the error listener, the timeout listener is specifically for when handle message times out, related to the handle message timeout functionality sqs consumer has.
Regarding the internal timeout a consumer has, can you elaborate on that a bit more?
I'm assuming you're not talking about the visibility window timeout so I'm not sure I get what internal logic could timeout for a consumer
Describe the bug
My setup is pretty simple:
I'm also listening to the shutting down of the server signals and stopping the consumer from listening. Using NestJS I do this:
I'm getting:
Error in the SQS consumer
, which we get from the generalerror
event and not thetimeout_error
event. would expect it to arrive from. Why is that? Could it be a bug?Your minimal, reproducible example
https://gist.github.com/kazazor/b4ecc2b22edcc2b697b4eb0e0c852fc5
Steps to reproduce
There are no actual steps here. I am using the setup I mentioned and letting the application run for days. Every few hours, the timeout occurs.
Expected behavior
timeout_error
eventHow often does this bug happen?
Often
Screenshots or Videos
No response
Platform
Package version
8.2.0
AWS SDK version
No response
Additional context
I'm also uncertain if the consumer continue to function after that..? Maybe this behavior is ok and I could ignore this error..
The text was updated successfully, but these errors were encountered: