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

SQS Service InvalidParameterValue error on WaitTimeSeconds #2030

Closed
itomaldonado opened this issue Feb 7, 2020 · 1 comment
Closed

SQS Service InvalidParameterValue error on WaitTimeSeconds #2030

itomaldonado opened this issue Feb 7, 2020 · 1 comment
Assignees

Comments

@itomaldonado
Copy link

itomaldonado commented Feb 7, 2020

I was having some issues using celery and localstack, but after removing celery form the equation I found out that the problem is localstack and how it handles the ReceiveMessage SQS action when the WaitTimeSeconds parameter is sent.

Here is some interactions (and versions of everything I am using):
(localstack is inside a docker container... I show the version here)...

➜ aws --version
aws-cli/1.17.12 Python/3.7.4 Darwin/17.7.0 botocore/1.14.12

➜ ./bin/localstack --version
0.10.7

➜ aws --endpoint-url=http://localstack.docker:4576 sqs receive-message --queue-url=http://localhost:4576/queue/some-tasks --wait-time-seconds 30

An error occurred (InvalidParameterValue) when calling the ReceiveMessage operation: InvalidParameterValue; see the SQS docs.

Not sure why this parameter is wrong, since it is in the docs, any suggestions?

@whummer
Copy link
Member

whummer commented Feb 27, 2020

Thanks for reporting @itomaldonado . Looks like the maximum long polling wait time is 20 seconds - see, e.g., here: https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/examples-sqs-long-polling.html

We briefly tried it with values up to 20s and it seems to work fine.

Closing this issue, but please feel free to re-open or provide more details if the problem persists. Thanks!

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

No branches or pull requests

3 participants