MinioClient.ListObjectsAsync() throws an error when the bucket is empty
See original GitHub issueAs the title says, simple code:
try
{
await this.client.ListObjectsAsync(bucketName);
return true;
}
catch
{
return false;
}
always returns false, when the requested bucket does not contain any objects (e.g. new bucket).
The caught exception is:
System.InvalidOperationException: Sequence contains no elements.
at System.Reactive.Subjects.AsyncSubject`1.GetResult() in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Subjects\AsyncSubject.cs:line 361
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Get list of objects from S3 bucket using Minio in .Net
I can check is a bucket exists and its contents, but just only the first time after compilation. Next times i get empty...
Read more >.NET Client API Reference — MinIO Object Storage for Linux
public MinioClient(). Creates MinIO client. This client gives an empty object that can be used with Chaining to populate only the member variables...
Read more >io.minio.MinioClient.removeBucket java code examples
public static void teardown() throws Exception { client. ... This operation will only work if your bucket is empty. boolean found = minioClient....
Read more >Amazon S3 examples using AWS SDK for .NET
The following code examples show you how to perform actions and implement common scenarios by using the AWS SDK for .NET with Amazon...
Read more >Object Storage, Minio, and Kubernetes
We can't delete a bucket unless it is empty. So let's look in the container and see what it contains. List bucket contents....
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
Having await on a function that is not marked async and returns IObservable may be causing an unintended error. Can you please remove the await keyword for ListObjectsAsync & try.
Fix 527 merged to master branch.