cloudyr / aws.s3

Amazon Simple Storage Service (S3) API Client
https://cloud.r-project.org/package=aws.s3
381 stars 147 forks source link

Error in parse_aws_s3_response(r,sig,verbose=verbose) : Forbidden (Http 403) #410

Open thodimth opened 2 years ago

thodimth commented 2 years ago

Please specify whether your issue is about:

get_object('s3://bucketname/0bjectpath') -------------------–--------------------------------–--------------------------------–-------------

List of 4 $ Code: chr "Access Denied" $ Message : chr "Access Denied" $ RequestId: chr "FH5038330VG4W9EE" S HostId : chr "c41q0eP29GT10ye7DZLVKHEHAAT+qAFt2xLkfknsttTVVldl kjtN2nCVXVKUGY4t7f1wVFI U+FO="

Error in parse_aurs_53_response(r, sig, verbose - verbose) :

Forbidden (HTTP 403).

-------------------–--------------------------------–--------------------------------–-------------

Matrix products: default

locale:

[1] LC COLLATE-English United States.1252 LC CTYPE-English United States.1252 [3] LC MONETARY-English United States. 1252 LC_TMERIC-C [5] LC_TIME=English United States. 1252

attached base packages: [1] stats graphics grDevices utils

other attached packages: [1] aws.s3_0.3.22 httr 1.4.2

loaded via a namespace (and not attached): [1] compiler_4.1.0 R6 2.5.1 [3] paws.machine. learning_0.1.12. paws.storage.0.1.12 [5] tools_4.1.0. base64 enc_0.1-3 [7] curl_4.3.2 [9] xm12 1.3.2 [11] paws.common 0.3.14 aws. signature_0.6.0 --------------------–--------------------------------–--------------------------------–-------------

Below is the sample getobject method I have executed, I have required ACL permissions to retrieve object details but using this library I couldn't fetch the details.But similar functionality is working from python.

Please help me in understanding if I need to make any changes to the way I call get_object().

get_object('s3://bucketname/0bjectpath')