-
Notifications
You must be signed in to change notification settings - Fork 642
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.ChangeMessageVisibilityBatch fails when entries' VisibilityTimeout is zero #2250
Comments
Hi @eraserhd , Can you please pull the latest version of the SQS client? We are on Version: v1.44.327 . Thanks, |
That's
|
This is another symptom of the larger problem described in #2162. I've added this instance to the list of known offenders there. Will close this as duplicate |
|
sorry. I thought this was fixed. |
This is still broken as of v1.34.5 |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
According to https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_ChangeMessageVisibility.html , the minimum value is 0. Elsewhere, the documentation describes using zero to make the entry immediately visible. This does not work with the Go API.
Expected Behavior
A successful response.
Current Behavior
The API responds with:
... suggesting that the API is not serializing the field because of its zero-value.
Note that the documentation does not say this is a required field, but apparently it is, so perhaps some metadata somewhere is messed up?
Reproduction Steps
Call
ChangeMessageVisibilityBatch
with a single entry withVisibilityTimeout
of 0.If you change
VisibilityTimeout
to 1, the call succeeds.Possible Solution
Marking the field as required so it is serialized, or marking it as required to serialize?
Additional Information/Context
No response
AWS Go SDK V2 Module Versions Used
Compiler and Version used
Go 1.21.0
Operating System and version
Linux debian:buster
The text was updated successfully, but these errors were encountered: