-
Notifications
You must be signed in to change notification settings - Fork 285
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
client.bucketExists
inconsistent behavior
#648
Comments
Hey @ruslan-polutsygan, does the bucket exist ? |
Hi @vadmeste. No, it does not. |
Besides, |
@ruslan-polutsygan, true/false is not enough.. because sometimes, we can have some errors like, network problem etc.. so we really need to return an error here. By the way, are you testing against Minio or AWS S3 ? |
Network problem - is exceptional situation for this case. From my perspective, this is the case for I'm testing with local minio server. |
New() can be successful, but there is still chance to have network problem when you make the isBucketExist() call.
Thanks, will test it.. and compare Minio & AWS S3 behavior.. and see what S3 spec tells exactly. |
Sorry, I mean that "network problem" is exceptional situation and error should be thrown in this case, but "bucket does not exist" - not exceptional for this method, it is expected. Nevermind, it's philosophical :)
Thank you. |
completely agree with @ruslan-polutsygan if should be possible to write
|
Hello
If I configure
minio.client
with region -client.bucketExists
throws error withe.code === 'NotFound'
.But if I
minio.client
configured without region - behavior is as documented.Why is that?
The text was updated successfully, but these errors were encountered: