minio / minio-dotnet

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

BucketExistsAsync fail when using direct minio server ip #716

Open vuonghung12 opened 1 year ago

vuonghung12 commented 1 year ago

Hi, when I setup minio behind nginx proxy method BucketExistsAsync work

but when change to direct ip I have this error, please help

InnerException: {" was not expected." Message: There is an error in XML document (1, 2). StackTrace:

   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   at System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream)
   at Minio.MinioClient.ParseErrorFromContent(ResponseResult response)
   at Minio.MinioClient.ParseError(ResponseResult response)
   at Minio.MinioClient.HandleIfErrorResponse(ResponseResult response, IEnumerable`1 handlers, DateTime startTime)
   at Minio.MinioClient.<ExecuteTaskCoreAsync>d__181.MoveNext()
   at Minio.BucketRegionCache.<Update>d__9.MoveNext()
   at Minio.MinioClient.<GetRegion>d__168.MoveNext()
   at Minio.MinioClient.<CreateRequest>d__172.MoveNext()
   at Minio.MinioClient.<CreateRequest>d__170`1.MoveNext()
   at Minio.MinioClient.<BucketExistsAsync>d__1.MoveNext()
ebozduman commented 1 year ago

Could you provide your complete script and console messages? Please include your env vars if you depend on them and the output of mc admin trace --debug -v <your-alias> command during your run.

vuonghung12 commented 1 year ago

code: bool found = await minio.BucketExistsAsync(bucketName);

Trace: image

I can't find debug option on web-ui