Delete message, creates another one
kdrapala opened this issue · 3 comments
Hello, my problem with this docker is about delete message from aws cli.
When I send a message to a queue using this command:
aws --endpoint-url http://localhost:9324 sqs send-message --queue-url http://localhost:9324/queue/default --message-body "Hello, queue!"
Everything is ok. On the UI I see that message.
Receive message is alright too, because when I use this command:
aws sqs receive-message --endpoint-url http://localhost:9324 --queue-url http://localhost:9324/queue/default
I get a JSON object with MessageId, ReceiptHndle, Md5OfBody and Body properties.
Problem is when I trying to delete this message from a queue.
I send this command:
aws sqs delete-message --endpoint-url http://localhost:9324 --queue-url http://localhost:9324/queue/ShadowsDats.fifo --receipt-handle <value>
as a value I put a ReceiptHandle property from before "Receive message"
This command not working. I see this message still. I don't have any response from that command.
Second problem is when I create a new queue using this command:
aws --endpoint-url http://localhost:9324 sqs create-queue --queue-name test --attributes FifoQueue=true,ContentBasedDeduplication=true,ReceiveMessageWaitTimeSeconds=20,VisibilityTimeout=3600
Sending message works fine, but when I trying to delete message which I receive before, then on my queue still see that message and (what is more important) i get a duplicate of message on that queue.
I test it on the AWS real service and that CLI commands works fine. Delete too.
Is I do something wrong?
Seeing the same behaviour. Makes it kind of useless unfortunately. Anyone who have any idea where I might want to go looking for the problem?
¯_(ツ)_/¯ I am completely unable to delete a message
Can someone please archive this repo as trash so nobody uses it?