Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 of 3 tasks
thodimth opened this issue Nov 23, 2021 · 0 comments
Open
2 of 3 tasks

Comments

@thodimth
Copy link

thodimth commented Nov 23, 2021

Please specify whether your issue is about:

  • a possible bug
  • a question about package functionality
  • a suggested code or documentation change, improvement to the code, or feature request
    -------------------–--------------------------------–--------------------------------–-------------

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')
-------------------–--------------------------------–--------------------------------–-------------

  • Error:

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

  • attr(*, "headers")=List of 7
    ..$x-amz-bucket-region: chr 'us-east-1'
    ..$ x-amz-request-id:'FH503B330VG4W9EP'
    ..$ content-type: chr "application/xml
    ..$ transfer-encoding: chr "chunked"
    ..$date: chr "Tue, 23 Nov 2021 06:37:10 GMT"
    ..$server : chr "Amazons 3"
    ..attr(", "class")- chr [1:2] "insensitive" "list"
  • attr(", "class")= chr "aws error"
  • attr(", "request_canonical")= chr "GET\n/577537-rdf-rnd-dev/\n\nhost:53. amazonaws.com\n x-amz-content-sha256:e3b0c44298fcic149afbf4c8996fb92427ae41"|_truncated
  • attr(", "request_string_to_sign")- chr "AWS4-HMAC-SHA256\n20211123T0637092\n20211123/us -east-1/53/aws4_request\n4da049bf3e63f7d88dda995cd2463d9bf335082"| truncated attr(" "request signature")- chr "AWS4-HMAC-SHA256 credential-AKIA36GURUMHSADAE ZEW/20211123/us-east-1/s3/aws4_request, signedнeaders-host; x-amz-co"|truncated___
    NULL

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

Forbidden (HTTP 403).

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

  • the output of sessionInfo()
  • R version 4.1.0 (2021-05-18) platform: x86_64-w64-mingw32/x64 (64-bit) Running under: windows 10 x64 (build 18363)

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')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant