The receipt handle has expired while deleting message from SQS FIFO queue

Viewed 14
1 Answers

When the Amazon SQS console is used to view the contents of an SQS queue, it is calling the same ReceiveMessage() API call as a normal app would call. This triggers message invisibility and increments the 'Receive Count' that is used to send messages to the Dead Letter Queue.

When ReceiveMessage() is called, a different visibility timeout can be specified. I suspect that the console is using a low visibility timeout so that it does not prevent queue consumers from being able to access the messages. Thus, when the polling is finished, the invisibility period has probably expired.

If this behaviour is not acceptable for your situation, you could write your own 'message viewer' that specifies a longer invisibility timeout.

Related