-
Notifications
You must be signed in to change notification settings - Fork 910
GetBucketPolicy with async S3 client doesn't work #1577
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
Comments
Hy @avgdorom Can you share a sample code where you create and use the client? And also the stacktrace with the error you're seeing? |
Hi @debora-ito, of course and thanks for the quick response.
NOTE: I put a sync call right next to it in my test, as I mentioned before, to compare the two. The sync call worked just fine. |
The stacktrace:
As I understand, this XML parse error stems from the content of the response being |
Transferred the issue to Java V2 repo. |
@avgdorom thank you for reporting this, we'll investigate. |
@bmaizels Thanks! This is great. One question though: how do I get the fix? Do I need to wait for the next Java SDK release? If so, when is that due? |
@avgdorom This should be included with the 2.10.47 release on 1/10. |
@bmaizels Thanks, but in that case, I don't think it works... Tried it again twice, with version 2.10.47, and it just doesn't work. I get exactly what I reported in the bug in the first place. |
@avgdorom actually it is available in today's release, version Apologies for the confusion. |
@avgdorom That was my fault, sorry about that confusion. I've retested it to be sure and I see broken in 2.10.47 and fixed in 2.10.48. Please let me know if you have any more problems with it. |
@bmaizels It's fine, it happens 😄 Works like a charm now! thank you. |
…929bad28d Pull request: release <- staging/171c037d-ce75-4c0b-aa92-79f929bad28d
I'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 forgetBucketPolicy
... In that case the response body is always null, which then causes an XML parsing error (I debugged until I came toGetBucketPolicyInterceptor.modifyHttpResponseContent()
).NOTE: For Exactly the same request, the S3 sync client works like a charm.
The text was updated successfully, but these errors were encountered: