You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi minio team, I found one special issue from Minio nuget package 5.0.0.
The exception log message is like:
Upload d:\Storage\L-001\Part1.bmp to L-001/Part1.bmp failed: The type 'System.ReadOnlySpan`1[System.Byte]' of property 'Span' on type 'System.ReadOnlyMemory`1[System.Byte]' is invalid for serialization or deserialization because it is a pointer type, is a ref struct, or contains generic parameters that have not been replaced by specific types. from System.Text.Json
[2023-08-16 19:19:42.425 +08:00 INF] [2023-08-16 7:19:42 PM Info MinioUploader]Not find L-001/Part1.bmp: MinIO API responded with message=Not found. from Minio
I found the version 4.0.7 is good for the same file. I searched the release ntoes, and find the related updates in 5.0.0 from Compat Span, does it relavant to this issue?
// uploadfs=newFileStream(filePath,FileMode.Open,FileAccess.Read,FileShare.Read);varpoa=_putObjectArgs?.WithObject(objName).WithStreamData(fs).WithObjectSize(fs.Length).WithContentType("application/octet-stream");// Upload a file to bucket.await_client.PutObjectAsync(poa);fs.Close();
..._logger?.Error($"Upload {filePath} to {objName} failed: {e.Message} from {e.Source}");
The environment info is:
VS 2022 Community
.NET SDK 6.0 LTS
ASP.NET Core 6.0
Minio 5.0.0
The text was updated successfully, but these errors were encountered:
hi @martijn00 , sorry, although I would like to help for such things, I don't have time to do that, or you may wait long time to get some results from me ~
I also have some interesting on the System.ReadOnlySpan stuff, but not sure when can give back some findings~
Hi minio team, I found one special issue from Minio nuget package 5.0.0.
The exception log message is like:
I found the version 4.0.7 is good for the same file. I searched the release ntoes, and find the related updates in 5.0.0 from Compat Span, does it relavant to this issue?
4.0.7...5.0.0
The sample code is like:
The environment info is:
The text was updated successfully, but these errors were encountered: