Closed ianbrunjes closed 2 years ago
Since the PUT is successful, we can assume that the auth credentials are being correctly provided. Here is the successfully updated dataset: https://portal-s.edirepository.org/nis/metadataviewer?packageid=edi.416.6
Thanks for reporting this issue this helpful report @BrennieDev! It looks like I'll have to refactor access to the evaluation report (line 93), which is restricted to only authenticated users in the case of your data package (i.e. public doesn't have read access).
This issue is fixed on the main
branch
I am calling EDIutils::api_update_data_package() in an R script to update a data package.
The response from the function call is an HTTP error 401, but the PUT to update the datapackage is successful, and I can view the package with its new doi. The error seems to come from the logic after a successful PUT- line 93, api_update_data_package.R