Open babaMar opened 5 years ago
Hi @babaMar,
Thanks for your interest in this project and submitting an issue.
This project is nothing more than a packaging of Softwaremill's elasticmq server. Unless I'm misunderstanding your issue, I believe this is something that can be better addressed by @adamw.
Cheers, Ronald
Hi @roribio,
yeah I realized that, when I run ElasticMQ locally it actually returns the correct response tho, that's why I opened this issue.
I see 🤔 Could you provide more info to help debug this issue? For example, which version of ElasticMQ are you running locally? Which version of alpine-sqs are you running?
Any details that you can provide will help.
Thanks!
For both containers I use to pull images, so versions that come with softwaremill/elasticmq
and roribio16/alpine-sqs
This is caused by SQS insights in the container receiving the messages and causing the visibility timeout to begin. Your code is trying to receive messages from the queue which are inflight. I worked around this issue by turning off SQS insights (the web UI).
The following code:
gives a different response from the one given when using a real AWS resource:
{'ResponseMetadata': {'RequestId': '00000000-0000-0000-0000-000000000000', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'akka-http/10.1.3', 'date': 'Wed, 17 Apr 2019 09:48:34 GMT', 'content-type': 'text/plain; charset=UTF-8', 'content-length': '356'}, 'RetryAttempts': 0}}
real-resource response: