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

S3 Control signing is missing x-amz-content-sha256 header #291

Closed
jdisanti opened this issue Nov 12, 2021 · 2 comments
Closed

S3 Control signing is missing x-amz-content-sha256 header #291

jdisanti opened this issue Nov 12, 2021 · 2 comments
Labels
bug This issue is a bug.

Comments

@jdisanti
Copy link
Contributor

jdisanti commented Nov 12, 2021

Bug Report

Version

Discovered against 0.0.25-alpha.

Platform

Ubuntu 20.04 64-bit.

AWS Services

aws-sdk-s3control

Description

Attempted to call S3 Control's ListAccessPoints operation with:

    use aws_sdk_s3control as s3control;

    let shared_config = aws_config::load_from_env().await;
    let client = s3control::Client::new(&shared_config);

    let response = client
        .list_access_points()
        .account_id("123redacted")
        .send()
        .await?;

    dbg!(response);

Received:

Error: ServiceError { err: ListAccessPointsError { kind: Unhandled(Error { code: Some("InvalidRequest"), message: Some("Missing required header for this request: x-amz-content-sha256"), request_id: Some("B3HQY18F8V1BJ89M"), extras: {} }), meta: Error { code: Some("InvalidRequest"), message: Some("Missing required header for this request: x-amz-content-sha256"), request_id: Some("B3HQY18F8V1BJ89M"), extras: {} } }, raw: Response { inner: Response { status: 400, version: HTTP/1.1, headers: {"x-amz-request-id": "B3HQY18F8V1BJ89M", "x-amz-id-2": "DZO3rlS9t9g6ajbiKrlBVWQhQgBxN55OX/FoYAHIaMEixwMKZ/3Qv+Gk5UGe6SZ5Qnh45JOKrdA=", "content-type": "application/xml", "transfer-encoding": "chunked", "date": "Fri, 12 Nov 2021 01:02:08 GMT", "server": "AmazonS3", "connection": "close"}, body: SdkBody { inner: Once(Some(b"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ErrorResponse><Error><Code>InvalidRequest</Code><Message>Missing required header for this request: x-amz-content-sha256</Message></Error><RequestId>B3HQY18F8V1BJ89M</RequestId><HostId>DZO3rlS9t9g6ajbiKrlBVWQhQgBxN55OX/FoYAHIaMEixwMKZ/3Qv+Gk5UGe6SZ5Qnh45JOKrdA=</HostId></ErrorResponse>")), retryable: true } }, properties: SharedPropertyBag(Mutex { data: PropertyBag, poisoned: false, .. }) } }
@jdisanti jdisanti added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Nov 12, 2021
@rcoh rcoh removed the needs-triage This issue or PR still needs to be triaged. label Nov 12, 2021
@rcoh rcoh added this to We're Working On It in SDK for Rust Public Roadmap Nov 15, 2021
@jdisanti jdisanti moved this from We're Working On It to Coming Soon (slated for inclusion in next release) in SDK for Rust Public Roadmap Nov 19, 2021
@rcoh rcoh closed this as completed Nov 24, 2021
SDK for Rust Public Roadmap automation moved this from Coming Soon (slated for inclusion in next release) to Just Shipped Nov 24, 2021
@github-actions
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.
Projects
No open projects
Development

No branches or pull requests

2 participants