We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I set the parameter waitTimeSeconds for the receiveMessage ElasticMac returns an error
waitTimeSeconds
receiveMessage
'InvalidParameterValue; see the SQS docs.'
But I have not found any way to configure this parameter,
Only this ReceiveMessageWaitTimeSeconds from createQueue(SDK v2) however, this produces the same error when I call createQueue:
ReceiveMessageWaitTimeSeconds
createQueue
export type QueueAttributeName = "All"|"Policy"|"VisibilityTimeout"|"MaximumMessageSize"|"MessageRetentionPeriod"|"ApproximateNumberOfMessages"|"ApproximateNumberOfMessagesNotVisible"|"CreatedTimestamp"|"LastModifiedTimestamp"|"QueueArn"|"ApproximateNumberOfMessagesDelayed"|"DelaySeconds"|"ReceiveMessageWaitTimeSeconds"|"RedrivePolicy"|"FifoQueue"|"ContentBasedDeduplication"|"KmsMasterKeyId"|"KmsDataKeyReusePeriodSeconds"|"DeduplicationScope"|"FifoThroughputLimit"|"RedriveAllowPolicy"|"SqsManagedSseEnabled"|string;
I'm not clear how to unlock this condition ...
Snipped to reproduce the condition:
const createParams: AWS.SQS.Types.CreateQueueRequest = { QueueName: 'http://elasticmq:9324/queue/test_queue", Attributes: { DelaySeconds: '0', MessageRetentionPeriod: '86400', }, }; const result = await sqs.createQueue(createParams).promise(); if (result.$response.error) { throw new Error( `Error while creating queue: ${result.$response.error.message}`, ); } const receiveParams = { QueueUrl: 'http://elasticmq:9324/queue/test_queue', AttributeNames: [], MaxNumberOfMessages: 1, WaitTimeSeconds: 30, VisibilityTimeout: 60, }; const res = await sqs.receiveMessage(receiveParams).promise();
Error
InvalidParameterValue; see the SQS docs.
If I use WaitTimeSeconds: 20 (the default value when elasticmq creates the queue), run correctly
WaitTimeSeconds: 20
The text was updated successfully, but these errors were encountered:
If I'm not mistaken 20 is the maximum wait time for SQS.
https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-short-and-long-polling.html#sqs-long-polling.
The maximum long polling wait time is 20 seconds
Sorry, something went wrong.
No branches or pull requests
When I set the parameter
waitTimeSeconds
for thereceiveMessage
ElasticMac returns an errorBut I have not found any way to configure this parameter,
Only this
ReceiveMessageWaitTimeSeconds
fromcreateQueue
(SDK v2) however, this produces the same error when I callcreateQueue
:I'm not clear how to unlock this condition ...
Snipped to reproduce the condition:
Error
InvalidParameterValue; see the SQS docs.
If I use
WaitTimeSeconds: 20
(the default value when elasticmq creates the queue), run correctlyThe text was updated successfully, but these errors were encountered: