Closed alexmaycon closed 2 years ago
@alexmaycon if you do a GetBucket call on the same bucket/namespace, does the call succeed, or do you get an error? If an error, what is the error?
@alexmaycon if you do a GetBucket call on the same bucket/namespace, does the call succeed, or do you get an error? If an error, what is the error?
Hi @jodoglevy, it returns an error (404, BucketNotFound) because the bucket I'm trying to get doesn't actually exist. I'm using HeadBucket to validate exactly that, when it doesn't exist (HeadBucket=404) I'll be creating the bucket.
ok. but the HeadBucket did return a 404, right? I agree the error message is confusing, but couldn't your code still use that 404 returned from HeadBucket for what you're looking to accomplish?
Got it, I'll tweak the code. Thanks @jodoglevy.
Hello!
I'm getting the error
Unexpected Content-Type: null instead of application/json.
when making a request on the HeadBucket endpoint.The user policy are:
Can anyone help?
Thanks!!