GetBucketPolicy with async S3 client doesn't work
See original GitHub issueI’m trying to use the S3AsyncClient
in order to get bucket policies from my AWS account.
I created a client, giving it the correct credentials and region, but I keep getting null
in the content of the response.
Just to be sure that I initialized the client correctly, I tried other requests like, getBucketPolicyStatus
, listBuckets
and more. Every other request I tried returned the expected data, except for getBucketPolicy
… In that case the response body is always null, which then causes an XML parsing error (I debugged until I came to GetBucketPolicyInterceptor.modifyHttpResponseContent()
).
NOTE: For Exactly the same request, the S3 sync client works like a charm.
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Get the policy for an Amazon S3 bucket using an AWS SDK
The following code examples show how to get the policy for an S3 bucket. C++. SDK for C++. Note. There's more on GitHub....
Read more >S3AsyncClient (AWS SDK for Java - 2.18.35)
Service client for accessing Amazon S3 asynchronously. ... If you don't have GetBucketPolicy permissions, Amazon S3 returns a 403 Access Denied error.
Read more >Write to S3 bucket using Async/Await in AWS Lambda
You only await functions that return a promise. s3.putObject does not return a promise (similar to most functions that take a callback).
Read more >Java Client API Reference — MinIO Object Storage for Linux
HttpUrl object and optionally accepts port number and flag to enable secure (TLS) connection. Endpoint as a string can be formatted like below:...
Read more >Examples of creating a bucket - EaseFilter
The create bucket request doesn't specify another AWS Region. The client sends a request to Amazon S3 to create the bucket in the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@avgdorom actually it is available in today’s release, version
2.10.48
- https://github.com/aws/aws-sdk-java-v2/blob/master/CHANGELOG.md#21048-2020-01-13Apologies for the confusion.
@avgdorom thank you for reporting this, we’ll investigate.