-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Problem deleting message from SQS FIFO queue: The receipt handle has expired #1279
Comments
|
This is the expected behavior of SQS given a visibility timeout of 0 seconds. When working with a FIFO queue, If you use Closing, as this is not an issue with the SDK. I'll forward this along to the SQS team as feedback on their documentation, as the intended behavior of the service with a zero second visibility timeout window is not clear. Please feel free to reopen if you have any questions or concerns. |
Hi @jeskew . I unfortunately missed the blog post so I wasn't aware. That fixed my issue, thanks! |
@jeskew I have a visibility timeout 30s and same error which can only mean I tried to delete a message after 30s am I right? |
@route Yes, |
Team, |
Hi team, I am experiencing the same issue as well even changing visibility timeout in codes to non zero . This does not often happen but I still can not fully control of message deletion. Is there a solution for this? |
I had this issue occur on a queue with the default visibiblity timeout of 30 seconds. The receipt handle was reported as expired even though there were still ~29 seconds left on the visibility timeout. |
As mentioned in aws document, I have to accept failed deletion and handle duplicate messages at consumer end |
Not only is "the message must be deleted within the same millisecond" hilarious, but also this is still nowhere in the SQS documentation. |
Im having the same issue. Timeout is 5 min and yet attempting to delete messages within a few seconds using the Console fails on all attempts. |
I am facing the same problem, have created new queue with Default Visibility Timeout set to 2 hours and cannot delete message. Always the same error message: "Reason: The receipt handle has expired" |
|
Same issue here, 1 hour default visibility and tried deleting a test message after 2 min, same error again and again... EDIT: THIS ONLY HAPPENS IN THE AWS UI WHEN MANUally deleting messages, |
@jeskew It worked for me. Perfect!! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Hi,
I've recently switched to a FIFO queue after using a standard queue for a while and have encountered an error where I am unable to delete messages from the queue. The message is received, as is the
ReceiptHandle
however when trying to delete, I get the error above.Full Error message:
Value {VALUE} for parameter ReceiptHandle is invalid. Reason: The receipt handle has expired.
SDK Version: 2.4.17 (also tried on 2.7.18)
Code
Stack trace
Queue Details
Default Visibility Timeout: 0 seconds
Message Retention Period: 1 days
Receive Message Wait Time: 0 seconds
Messages Available (Visible): 107
Delivery Delay: 0 seconds
Content-Based Deduplication: Enabled
Thanks,
Gordan
The text was updated successfully, but these errors were encountered: