Version 4.0.6 gets "MinIO API responded with message=Connection error:Object reference not set to an instance of an object"

See original GitHub issue

When doing a upgrade from 4.0.5 to 4.06 we experienced odd behavior when using Minio client

BucketExistsAsync (and any other call)

Minio.Exceptions.ConnectionException: MinIO API responded with message=Connection error:Object reference not set to an instance of an object.. Status code=0, response=Object reference not set to an instance of an object., content=
   at Minio.MinioClient.ParseErrorNoContent(ResponseResult response) in /root/.q/sources/minio-dotnet/Minio/MinioClient.cs:line 613
   at Minio.MinioClient.ParseError(ResponseResult response) in /root/.q/sources/minio-dotnet/Minio/MinioClient.cs:line 596
   at Minio.MinioClient.HandleIfErrorResponse(ResponseResult response, IEnumerable`1 handlers, DateTime startTime) in /root/.q/sources/minio-dotnet/Minio/MinioClient.cs:line 793
   at Minio.MinioClient.ExecuteTaskCoreAsync(IEnumerable`1 errorHandlers, HttpRequestMessageBuilder requestMessageBuilder, CancellationToken cancellationToken, Boolean isSts) in /root/.q/sources/minio-dotnet/Minio/MinioClient.cs:line 574
   at Minio.BucketRegionCache.Update(MinioClient client, String bucketName) in /root/.q/sources/minio-dotnet/Minio/BucketRegionCache.cs:line 102
   at Minio.MinioClient.GetRegion(String bucketName) in /root/.q/sources/minio-dotnet/Minio/MinioClient.cs:line 216
   at Minio.MinioClient.CreateRequest(HttpMethod method, String bucketName, String objectName, Dictionary`2 headerMap, String contentType, Byte[] body, String resourcePath) in /root/.q/sources/minio-dotnet/Minio/MinioClient.cs:line 301
   at Minio.MinioClient.CreateRequest[T](BucketArgs`1 args) in /root/.q/sources/minio-dotnet/Minio/MinioClient.cs:line 246
   at Minio.MinioClient.BucketExistsAsync(BucketExistsArgs args, CancellationToken cancellationToken) in /root/.q/sources/minio-dotnet/Minio/ApiEndpoints/BucketOperations.cs:line 74

Connection code image Interaction code image

Server minio; image

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:6

github_iconTop GitHub Comments

3reactions
okandeldevcommented, Nov 14, 2022

@CasperCBroeren, please make sure to call Build Method for minioClient Instance.

image

1reaction
CasperCBroerencommented, Nov 15, 2022

@okandeldev thanks for the response. Adding the build was the fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

'Object reference not set to an instance of an object.' #3267 ...
hi. Use the below code to fix the problem, We will fix it in abp framework. Configure<AbpBlobStoringOptions>(options => { options.
Read more >
Minio client cannot connect #13577
I get the following error message. What am I missing? raise InvalidResponseError( minio.error.InvalidResponseError: non-XML response from server ...
Read more >
minio client (GO SDK) API calls are not working
Probably SDK version doesn't match the server version. Here is a complete example which works: Start the server in docker
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found