minio / minio-dotnet

MinIO Client SDK for .NET
https://docs.min.io/docs/dotnet-client-quickstart-guide.html
Apache License 2.0
558 stars 220 forks source link

ListBucketsAsync should throw exception when the server is not online or response.status is not ok #1137

Open zhuxb711 opened 1 month ago

zhuxb711 commented 1 month ago

Currently ListBucketsAsync simple ignore any exception from the response. Even the mino server is not online. https://github.com/minio/minio-dotnet/blob/a2589e141e0a81f793b957f549ad3b21e76c24a0/Minio/ApiEndpoints/BucketOperations.cs#L59

marwa-elfakir-logi commented 1 month ago

It ignores exceptions even if the minio server doesn't exist

zhuxb711 commented 1 month ago

It ignores exceptions even if the minio server doesn't exist

Yes "any exceptions" including a server that never ever exists