elasticmq icon indicating copy to clipboard operation
elasticmq copied to clipboard

Error when calling "receiveMessage" on empty queue (1.5.2, 1.6.2)

Open ppaulis opened this issue 1 year ago • 1 comments

Hi!

I'm having a strange behaviour when doing a receiveMessage on an empty queue. The call hangs for approx. 1 minute, and then finishes with:

Error executing "ReceiveMessage" on "http://localhost:9324"; AWS HTTP error: Server error: `POST http://localhost:9324` resulted in a `503 Service Unavailable` response:
      The server was not able to produce a timely response to your request.
      Please try again in a short while!
       Unable to parse error information from response - Error parsing JSON: Syntax error (Aws\Sqs\Exception\SqsException)

Queue URL is configured correctly. The error doesn't happen, if there's a message in the queue. Tested with 1.5.2 and 1.6.2. Any hint is appreciated!

Thanks, Pascal

ppaulis avatar May 28 '24 20:05 ppaulis

Hi Pascal, I've added simple test and it passed for both v1 and v2 SDKs (not hanged). https://github.com/softwaremill/elasticmq/commit/c22fd8a797660715e90f6fc108147ca5e7ac6a4e What parameters are you using for CreateQueue and ReceiveMessage commands?

micossow avatar May 29 '24 07:05 micossow