-
Notifications
You must be signed in to change notification settings - Fork 19
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
Issue with getChecksum for private data package #262
Comments
Issue #262 Replace bare `GET` call with dataone::auth_get() so that checksums for private objects can be retrieved for authorized users.
@CDorich we can not, only you can. The overall email notification settings are controlled in your github account settings. And the repository-specific settings are controlled via the |
Hello,
Thanks for this great package. I'm currently trying it to insert/update cycles over data packages, and at some point I moved out from the CRAN version to install the current Github dev version.
I've tried to apply
getDataPackage
method, but for the data resource attached to it, I got this error:Digging into the R code, i've identified this comes from the
getChecksum
function. For some unknown reason, I get an unauthorized GET request, which makes code break at https://github.com/DataONEorg/rdataone/blob/master/R/MNode.R#L307My
checksum
object returned at line 304 looks like that:I've then realized this was because the data package was set as private, and the getChecksum is always done without authorization. Shouldn't it use
auth_get
instead native httr::GET ? so we can allow getting private data packages?The text was updated successfully, but these errors were encountered: