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

Latest release broke the SQS SendMessageBatch API #957

Closed
yotamofek opened this issue Nov 16, 2023 · 4 comments
Closed

Latest release broke the SQS SendMessageBatch API #957

yotamofek opened this issue Nov 16, 2023 · 4 comments
Labels
bug This issue is a bug. p1 This is a high priority issue

Comments

@yotamofek
Copy link
Contributor

yotamofek commented Nov 16, 2023

Describe the bug

Updating aws-sdk-sqs to 0.36 (and the helper crates to 0.57.2) broke my code.

Sending a SendMessageBatch request gives me a UnknownOperationException error.
Downgrading back to 0.35 fixes the problem.

Expected Behavior

The same code works on the previous release.

Current Behavior

called `Result::unwrap()` on an `Err` value: ServiceError(ServiceError { source: Unhandled(Unhandled { source: ErrorMetadata { code: Some("UnknownOperationException"), message: None, extras: Some({"aws_request_id": "10e9c857-86a4-5e35-a7ea-95984764fa7c"}) }, meta: ErrorMetadata { code: Some("UnknownOperationException"), message: None, extras: Some({"aws_request_id": "10e9c857-86a4-5e35-a7ea-95984764fa7c"}) } }), raw: Response { status: 400, version: HTTP/1.1, headers: {"x-amzn-requestid": "10e9c857-86a4-5e35-a7ea-95984764fa7c", "date": "Thu, 16 Nov 2023 07:06:40 GMT", "content-type": "application/x-amz-json-1.0", "content-length": "63", "connection": "keep-alive"}, body: SdkBody { inner: Once(Some(b"{\"__type\":\"com.amazon.coral.service#UnknownOperationException\"}")), retryable: true } } })

Reproduction Steps

use aws_sdk_sqs::types::SendMessageBatchRequestEntry;

#[tokio::main]
async fn main() {
    let config = aws_config::load_from_env().await;
    let sqs = aws_sdk_sqs::Client::new(&config);
    sqs.send_message_batch()
        .queue_url("https://sqs.eu-west-1.amazonaws.com/933836017384/events-test")
        .entries(
            SendMessageBatchRequestEntry::builder()
                .id("0")
                .message_body(r#"{"key": "value"}"#)
                .build()
                .unwrap(),
        )
        .send()
        .await
        .unwrap();
}

Possible Solution

No response

Additional Information/Context

No response

Version

├── aws-sdk-error v0.1.0 (/home/yotam/proj/crates/aws-sdk-error)
│   ├── aws-smithy-runtime-api v0.57.2
│   │   ├── aws-smithy-async v0.57.2
│   │   ├── aws-smithy-types v0.57.2
│   ├── aws-smithy-types v0.57.2 (*)
├── aws-sdk-s3 v0.36.0
│   ├── aws-credential-types v0.57.2
│   │   ├── aws-smithy-async v0.57.2 (*)
│   │   ├── aws-smithy-runtime-api v0.57.2 (*)
│   │   ├── aws-smithy-types v0.57.2 (*)
│   ├── aws-http v0.57.2
│   │   ├── aws-smithy-http v0.57.2
│   │   │   ├── aws-smithy-eventstream v0.57.2
│   │   │   │   ├── aws-smithy-types v0.57.2 (*)
│   │   │   ├── aws-smithy-runtime-api v0.57.2 (*)
│   │   │   ├── aws-smithy-types v0.57.2 (*)
│   │   ├── aws-smithy-runtime-api v0.57.2 (*)
│   │   ├── aws-smithy-types v0.57.2 (*)
│   │   ├── aws-types v0.57.2
│   │   │   ├── aws-credential-types v0.57.2 (*)
│   │   │   ├── aws-smithy-async v0.57.2 (*)
│   │   │   ├── aws-smithy-runtime-api v0.57.2 (*)
│   │   │   ├── aws-smithy-types v0.57.2 (*)
│   ├── aws-runtime v0.57.2
│   │   ├── aws-credential-types v0.57.2 (*)
│   │   ├── aws-http v0.57.2 (*)
│   │   ├── aws-sigv4 v0.57.2
│   │   │   ├── aws-credential-types v0.57.2 (*)
│   │   │   ├── aws-smithy-eventstream v0.57.2 (*)
│   │   │   ├── aws-smithy-http v0.57.2 (*)
│   │   │   ├── aws-smithy-runtime-api v0.57.2 (*)
│   │   ├── aws-smithy-async v0.57.2 (*)
│   │   ├── aws-smithy-eventstream v0.57.2 (*)
│   │   ├── aws-smithy-http v0.57.2 (*)
│   │   ├── aws-smithy-runtime-api v0.57.2 (*)
│   │   ├── aws-smithy-types v0.57.2 (*)
│   │   ├── aws-types v0.57.2 (*)
│   ├── aws-sigv4 v0.57.2 (*)
│   ├── aws-smithy-async v0.57.2 (*)
│   ├── aws-smithy-checksums v0.57.2
│   │   ├── aws-smithy-http v0.57.2 (*)
│   │   ├── aws-smithy-types v0.57.2 (*)
│   ├── aws-smithy-eventstream v0.57.2 (*)
│   ├── aws-smithy-http v0.57.2 (*)
│   ├── aws-smithy-json v0.57.2
│   │   └── aws-smithy-types v0.57.2 (*)
│   ├── aws-smithy-runtime v0.57.2
│   │   ├── aws-smithy-async v0.57.2 (*)
│   │   ├── aws-smithy-http v0.57.2 (*)
│   │   ├── aws-smithy-runtime-api v0.57.2 (*)
│   │   ├── aws-smithy-types v0.57.2 (*)
│   ├── aws-smithy-runtime-api v0.57.2 (*)
│   ├── aws-smithy-types v0.57.2 (*)
│   ├── aws-smithy-xml v0.57.2
│   ├── aws-types v0.57.2 (*)
├── aws-smithy-http v0.57.2 (*)
│   ├── aws-sdk-s3 v0.36.0 (*)
│   ├── aws-types v0.57.2 (*)
│   │   ├── aws-config v0.57.2
│   │   │   ├── aws-credential-types v0.57.2 (*)
│   │   │   ├── aws-http v0.57.2 (*)
│   │   │   ├── aws-runtime v0.57.2 (*)
│   │   │   ├── aws-sdk-sso v0.36.0
│   │   │   │   ├── aws-credential-types v0.57.2 (*)
│   │   │   │   ├── aws-http v0.57.2 (*)
│   │   │   │   ├── aws-runtime v0.57.2 (*)
│   │   │   │   ├── aws-smithy-async v0.57.2 (*)
│   │   │   │   ├── aws-smithy-http v0.57.2 (*)
│   │   │   │   ├── aws-smithy-json v0.57.2 (*)
│   │   │   │   ├── aws-smithy-runtime v0.57.2 (*)
│   │   │   │   ├── aws-smithy-runtime-api v0.57.2 (*)
│   │   │   │   ├── aws-smithy-types v0.57.2 (*)
│   │   │   │   ├── aws-types v0.57.2 (*)
│   │   │   ├── aws-sdk-ssooidc v0.36.0
│   │   │   │   ├── aws-credential-types v0.57.2 (*)
│   │   │   │   ├── aws-http v0.57.2 (*)
│   │   │   │   ├── aws-runtime v0.57.2 (*)
│   │   │   │   ├── aws-smithy-async v0.57.2 (*)
│   │   │   │   ├── aws-smithy-http v0.57.2 (*)
│   │   │   │   ├── aws-smithy-json v0.57.2 (*)
│   │   │   │   ├── aws-smithy-runtime v0.57.2 (*)
│   │   │   │   ├── aws-smithy-runtime-api v0.57.2 (*)
│   │   │   │   ├── aws-smithy-types v0.57.2 (*)
│   │   │   │   ├── aws-types v0.57.2 (*)
│   │   │   ├── aws-sdk-sts v0.36.0
│   │   │   │   ├── aws-credential-types v0.57.2 (*)
│   │   │   │   ├── aws-http v0.57.2 (*)
│   │   │   │   ├── aws-runtime v0.57.2 (*)
│   │   │   │   ├── aws-smithy-async v0.57.2 (*)
│   │   │   │   ├── aws-smithy-http v0.57.2 (*)
│   │   │   │   ├── aws-smithy-json v0.57.2 (*)
│   │   │   │   ├── aws-smithy-query v0.57.2
│   │   │   │   │   ├── aws-smithy-types v0.57.2 (*)
│   │   │   │   ├── aws-smithy-runtime v0.57.2 (*)
│   │   │   │   ├── aws-smithy-runtime-api v0.57.2 (*)
│   │   │   │   ├── aws-smithy-types v0.57.2 (*)
│   │   │   │   ├── aws-smithy-xml v0.57.2 (*)
│   │   │   │   ├── aws-types v0.57.2 (*)
│   │   │   ├── aws-smithy-async v0.57.2 (*)
│   │   │   ├── aws-smithy-http v0.57.2 (*)
│   │   │   ├── aws-smithy-json v0.57.2 (*)
│   │   │   ├── aws-smithy-runtime v0.57.2 (*)
│   │   │   ├── aws-smithy-runtime-api v0.57.2 (*)
│   │   │   ├── aws-smithy-types v0.57.2 (*)
│   │   │   ├── aws-types v0.57.2 (*)
│   │   ├── aws-sdk-s3 v0.36.0 (*)
│   │   ├── aws-smithy-http v0.57.2 (*)
│   │   ├── aws-types v0.57.2 (*)
│   │   │   ├── aws-sdk-error v0.1.0 (/home/yotam/proj/crates/aws-sdk-error) (*)
│   │   │   ├── aws-sdk-s3 v0.36.0 (*)
│   │   │   ├── aws-smithy-http v0.57.2 (*)
│   │   │   ├── aws-types v0.57.2 (*)
aws-consts v0.1.0 (/home/yotam/proj/crates/aws-consts)
├── aws-config v0.57.2 (*)
└── aws-types v0.57.2 (*)
aws-sdk-error v0.1.0 (/home/yotam/proj/crates/aws-sdk-error) (*)
├── aws-sdk-error v0.1.0 (/home/yotam/proj/crates/aws-sdk-error) (*)
├── aws-sdk-sqs v0.36.0
│   ├── aws-credential-types v0.57.2 (*)
│   ├── aws-http v0.57.2 (*)
│   ├── aws-runtime v0.57.2 (*)
│   ├── aws-smithy-async v0.57.2 (*)
│   ├── aws-smithy-http v0.57.2 (*)
│   ├── aws-smithy-json v0.57.2 (*)
│   ├── aws-smithy-runtime v0.57.2 (*)
│   ├── aws-smithy-runtime-api v0.57.2 (*)
│   ├── aws-smithy-types v0.57.2 (*)
│   ├── aws-types v0.57.2 (*)
├── aws-consts v0.1.0 (/home/yotam/proj/crates/aws-consts) (*)
├── aws-consts v0.1.0 (/home/yotam/proj/crates/aws-consts) (*)
├── aws-sdk-s3 v0.36.0 (*)
├── aws-smithy-types v0.57.2 (*)
│   ├── aws-sdk-error v0.1.0 (/home/yotam/proj/crates/aws-sdk-error) (*)
│   ├── aws-sdk-s3 v0.36.0 (*)
│   ├── aws-smithy-types v0.57.2 (*)
│   ├── aws-types v0.57.2 (*)
├── aws-config v0.57.2 (*)
├── aws-consts v0.1.0 (/home/yotam/proj/crates/aws-consts) (*)
├── aws-sdk-ec2 v0.36.0
│   ├── aws-credential-types v0.57.2 (*)
│   ├── aws-http v0.57.2 (*)
│   ├── aws-runtime v0.57.2 (*)
│   ├── aws-smithy-async v0.57.2 (*)
│   ├── aws-smithy-http v0.57.2 (*)
│   ├── aws-smithy-json v0.57.2 (*)
│   ├── aws-smithy-query v0.57.2 (*)
│   ├── aws-smithy-runtime v0.57.2 (*)
│   ├── aws-smithy-runtime-api v0.57.2 (*)
│   ├── aws-smithy-types v0.57.2 (*)
│   ├── aws-smithy-xml v0.57.2 (*)
│   ├── aws-types v0.57.2 (*)
├── aws-sdk-ecs v0.36.0
│   ├── aws-credential-types v0.57.2 (*)
│   ├── aws-http v0.57.2 (*)
│   ├── aws-runtime v0.57.2 (*)
│   ├── aws-smithy-async v0.57.2 (*)
│   ├── aws-smithy-http v0.57.2 (*)
│   ├── aws-smithy-json v0.57.2 (*)
│   ├── aws-smithy-runtime v0.57.2 (*)
│   ├── aws-smithy-runtime-api v0.57.2 (*)
│   ├── aws-smithy-types v0.57.2 (*)
│   ├── aws-types v0.57.2 (*)
├── aws-sdk-error v0.1.0 (/home/yotam/proj/crates/aws-sdk-error) (*)
├── aws-sdk-s3 v0.36.0 (*)
├── aws-smithy-types v0.57.2 (*)
│   ├── aws-sdk-error v0.1.0 (/home/yotam/proj/crates/aws-sdk-error) (*)
│   ├── aws-sdk-s3 v0.36.0 (*)
│   ├── aws-sdk-ec2 v0.36.0 (*)
│   ├── aws-sdk-ecs v0.36.0 (*)
│   ├── aws-sdk-error v0.1.0 (/home/yotam/proj/crates/aws-sdk-error) (*)
│   ├── aws-smithy-http v0.57.2 (*)
├── aws-config v0.57.2 (*)
├── aws-consts v0.1.0 (/home/yotam/proj/crates/aws-consts) (*)
├── aws-sdk-s3 v0.36.0 (*)
├── aws-smithy-types v0.57.2 (*)
├── aws-config v0.57.2 (*)
├── aws-consts v0.1.0 (/home/yotam/proj/crates/aws-consts) (*)
├── aws-sdk-ec2 v0.36.0 (*)
├── aws-sdk-ecs v0.36.0 (*)
├── aws-sdk-error v0.1.0 (/home/yotam/proj/crates/aws-sdk-error) (*)
├── aws-sdk-s3 v0.36.0 (*)
├── aws-sdk-sqs v0.36.0 (*)
├── aws-smithy-http v0.57.2 (*)
│   ├── aws-sdk-s3 v0.36.0 (*)
│   ├── aws-sdk-sqs v0.36.0 (*)
├── aws-consts v0.1.0 (/home/yotam/proj/crates/aws-consts) (*)
├── aws-sdk-error v0.1.0 (/home/yotam/proj/crates/aws-sdk-error) (*)
├── aws-sdk-sqs v0.36.0 (*)
├── aws-smithy-http v0.57.2 (*)
├── aws-config v0.57.2 (*)
├── aws-consts v0.1.0 (/home/yotam/proj/crates/aws-consts) (*)
├── aws-sdk-ec2 v0.36.0 (*)
├── aws-sdk-ecs v0.36.0 (*)
├── aws-consts v0.1.0 (/home/yotam/proj/crates/aws-consts) (*)
├── aws-sdk-error v0.1.0 (/home/yotam/proj/crates/aws-sdk-error) (*)
├── aws-sdk-s3 v0.36.0 (*)
├── aws-consts v0.1.0 (/home/yotam/proj/crates/aws-consts) (*)
├── aws-sdk-lambda v0.36.0
│   ├── aws-credential-types v0.57.2 (*)
│   ├── aws-http v0.57.2 (*)
│   ├── aws-runtime v0.57.2 (*)
│   ├── aws-smithy-async v0.57.2 (*)
│   ├── aws-smithy-http v0.57.2 (*)
│   ├── aws-smithy-json v0.57.2 (*)
│   ├── aws-smithy-runtime v0.57.2 (*)
│   ├── aws-smithy-runtime-api v0.57.2 (*)
│   ├── aws-smithy-types v0.57.2 (*)
│   ├── aws-types v0.57.2 (*)
├── aws-sdk-s3 v0.36.0 (*)
│   ├── aws-sdk-s3 v0.36.0 (*)
│       ├── aws-sdk-lambda v0.36.0 (*)
│       ├── aws-sdk-s3 v0.36.0 (*)
│   ├── aws-sdk-lambda v0.36.0 (*)
│   ├── aws-sdk-s3 v0.36.0 (*)

Environment details (OS name and version, etc.)

Linux

Logs

No response

@yotamofek yotamofek added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Nov 16, 2023
@rcoh
Copy link
Contributor

rcoh commented Nov 16, 2023

Thanks for reporting. I've yanked 0.36 while we investigate.

@rcoh rcoh added p1 This is a high priority issue and removed needs-triage This issue or PR still needs to be triaged. labels Nov 16, 2023
@rcoh
Copy link
Contributor

rcoh commented Nov 16, 2023

Fix will go out today or tomorrow

@rcoh rcoh added the pending-release This issue will be fixed by an approved PR that hasn't been released yet. label Nov 16, 2023
@rcoh
Copy link
Contributor

rcoh commented Nov 17, 2023

Fix released & verified:

            "x-amz-target": HeaderValue {
                _private: "AmazonSQS.SendMessageBatch",
            },

@rcoh rcoh closed this as completed Nov 17, 2023
@rcoh rcoh removed the pending-release This issue will be fixed by an approved PR that hasn't been released yet. label Nov 17, 2023
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. p1 This is a high priority issue
Projects
None yet
Development

No branches or pull requests

2 participants