generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 266
Closed
Labels
bugThis issue is a bug.This issue is a bug.
Description
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, .. }) } }
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.