Multipart upload fails, see error below, when setting multi_part to false, it works, but gives a warning due to large file size...
I'm using MinIO behind Cloudflare. Upload via mc copy command works fine, so its prob. a problem with this plugin. Thx
> put_object(
+ file = local_file_name,
+ object = file_name,
+ bucket = data_bucket,
+ multipart = TRUE,
+ show_progress = TRUE
+ )
Uploading part 1 of 2-part upload
|======================================================================| 100%
Uploading part 2 of 2-part upload
|======================================================================| 100%
Completing multi-part upload
List of 10
$ url : chr "https://s3.mortality.watch/data/mortality/world_weekly_104w_sma.csv"
$ status_code: int 400
$ headers :List of 11
..$ date : chr "Tue, 18 Apr 2023 03:43:32 GMT"
..$ content-type : chr "text/plain"
..$ content-length : chr "341"
..$ accept-ranges : chr "bytes"
..$ vary : chr "Origin"
..$ cf-cache-status: chr "DYNAMIC"
..$ report-to : chr "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=hlWyUJpFuQAk0kDwNS%2BurQ0Qm3Iwe1Msj"| __truncated__
..$ nel : chr "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"
..$ server : chr "cloudflare"
..$ cf-ray : chr "7b99e7763e0d102d-LAX"
..$ alt-svc : chr "h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"
..- attr(*, "class")= chr [1:2] "insensitive" "list"
$ all_headers:List of 1
..$ :List of 3
.. ..$ status : int 400
.. ..$ version: chr "HTTP/2"
.. ..$ headers:List of 11
.. .. ..$ date : chr "Tue, 18 Apr 2023 03:43:32 GMT"
.. .. ..$ content-type : chr "text/plain"
.. .. ..$ content-length : chr "341"
.. .. ..$ accept-ranges : chr "bytes"
.. .. ..$ vary : chr "Origin"
.. .. ..$ cf-cache-status: chr "DYNAMIC"
.. .. ..$ report-to : chr "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=hlWyUJpFuQAk0kDwNS%2BurQ0Qm3Iwe1Msj"| __truncated__
.. .. ..$ nel : chr "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"
.. .. ..$ server : chr "cloudflare"
.. .. ..$ cf-ray : chr "7b99e7763e0d102d-LAX"
.. .. ..$ alt-svc : chr "h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"
.. .. ..- attr(*, "class")= chr [1:2] "insensitive" "list"
$ cookies :'data.frame': 0 obs. of 7 variables:
..$ domain : logi(0)
..$ flag : logi(0)
..$ path : logi(0)
..$ secure : logi(0)
..$ expiration: 'POSIXct' num(0)
..$ name : logi(0)
..$ value : logi(0)
$ content : raw [1:341] 3c 3f 78 6d ...
$ date : POSIXct[1:1], format: "2023-04-18 03:43:32"
$ times : Named num [1:6] 0 0.000056 0 0.000218 0.000222 ...
..- attr(*, "names")= chr [1:6] "redirect" "namelookup" "connect" "pretransfer" ...
$ request :List of 7
..$ method : chr "POST"
..$ url : chr "https://s3.mortality.watch/data/mortality/world_weekly_104w_sma.csv"
..$ headers : Named chr [1:6] "application/json, text/xml, application/xml, */*" "text/plain" "224" "20230418T034332Z" ...
.. ..- attr(*, "names")= chr [1:6] "Accept" "Content-Type" "Content-Length" "x-amz-date" ...
..$ fields : NULL
..$ options :List of 4
.. ..$ useragent : chr "libcurl/7.87.0 r-curl/4.3.3 httr/1.4.5"
.. ..$ post : logi TRUE
.. ..$ readfunction :function (nbytes, ...)
.. ..$ postfieldsize_large: num 224
..$ auth_token: NULL
..$ output : list()
.. ..- attr(*, "class")= chr [1:2] "write_memory" "write_function"
..- attr(*, "class")= chr "request"
$ handle :Class 'curl_handle' <externalptr>
- attr(*, "class")= chr "aws_error"
- attr(*, "headers")=List of 11
..$ date : chr "Tue, 18 Apr 2023 03:43:32 GMT"
..$ content-type : chr "text/plain"
..$ content-length : chr "341"
..$ accept-ranges : chr "bytes"
..$ vary : chr "Origin"
..$ cf-cache-status: chr "DYNAMIC"
..$ report-to : chr "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=hlWyUJpFuQAk0kDwNS%2BurQ0Qm3Iwe1Msj"| __truncated__
..$ nel : chr "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"
..$ server : chr "cloudflare"
..$ cf-ray : chr "7b99e7763e0d102d-LAX"
..$ alt-svc : chr "h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"
..- attr(*, "class")= chr [1:2] "insensitive" "list"
- attr(*, "request_canonical")= chr "POST\n/data/mortality/world_weekly_104w_sma.csv\n\ncontent-length:224\nhost:s3.mortality.watch\nx-amz-date:2023"| __truncated__
- attr(*, "request_string_to_sign")= chr "AWS4-HMAC-SHA256\n20230418T034332Z\n20230418/s3/s3/aws4_request\n73802dd93b74ca21116b9115649e353d454512adddd4f6"| __truncated__
- attr(*, "request_signature")= chr "AWS4-HMAC-SHA256 Credential=minio/20230418/s3/s3/aws4_request,SignedHeaders=content-length;host;x-amz-date,Sign"| __truncated__
NULL
Error in parse_aws_s3_response(r, Sig, verbose = verbose) :
Bad Request (HTTP 400).
Multipart upload fails, see error below, when setting multi_part to false, it works, but gives a warning due to large file size...
I'm using MinIO behind Cloudflare. Upload via
mc copycommand works fine, so its prob. a problem with this plugin. ThxLog: