Skip to content
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

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

Open
ppaulis opened this issue May 28, 2024 · 1 comment
Open

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

ppaulis opened this issue May 28, 2024 · 1 comment

Comments

@ppaulis
Copy link

ppaulis commented May 28, 2024

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

@micossow
Copy link
Contributor

Hi Pascal, I've added simple test and it passed for both v1 and v2 SDKs (not hanged).
c22fd8a
What parameters are you using for CreateQueue and ReceiveMessage commands?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants