xtyxtyx / minio-dart

Unofficial MinIO Dart Client SDK that provides simple APIs to access any Amazon S3 compatible object storage server.
https://pub.dev/packages/minio
MIT License
63 stars 145 forks source link

Big file upload error #7

Open zxl777 opened 4 years ago

zxl777 commented 4 years ago

Change the custed.png to 140MB. Then run the minio_example.dart , Show the error:

bucket 01test created
--- object region:
us-east-1
Unhandled exception:
MinioError: The request signature we calculated does not match the signature you provided. Check your key and signing method.
#0      validate 
package:minio/src/minio_helpers.dart:222
#1      Minio.listIncompleteUploadsQuery 
package:minio/src/minio.dart:412
<asynchronous suspension>
#2      Minio.findUploadId 
package:minio/src/minio.dart:195
#3      MinioUploader.initMultipartUpload 
package:minio/src/minio_uploader.dart:123
#4      MinioUploader.addStream 
package:minio/src/minio_uploader.dart:53
<asynchronous suspension>
#5      Stream.pipe  (dart:async/stream.dart:740:27)
#6      Minio.putObject 
package:minio/src/minio.dart:832
#7      MinioX.fPutObject 
package:minio/io.dart:31
<asynchronous suspension>
#8      main 
example/minio_example.dart:36
<asynchronous suspension>
#9      _startIsolate.<anonymous closure>  (dart:isolate-patch/isolate_patch.dart:301:19)
#10     _RawReceivePortImpl._handleMessage  (dart:isolate-patch/isolate_patch.dart:168:12)

Exited (255)
VadymPinchuk commented 4 years ago

Have no details, but got MinioError: The request signature we calculated does not match the signature you provided. Check your key and signing method. also

VadymPinchuk commented 4 years ago

@zxl777 have you found any possible solution for this? Thank you in advance

VadymPinchuk commented 4 years ago

I have found that this issue occurs here:

Future initMultipartUpload() async { print('MINIO Uploader: init multipart'); uploadId = await minio.findUploadId(bucket, object);

while trying to find previous not finished uploads

VadymPinchuk commented 4 years ago

@zxl777 should be fixed in next release. I believe )