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

Remove trailing information from record_id. #140

Closed
wants to merge 1 commit into from

Conversation

ThierryO
Copy link

Transforms 12345678/versions/latest into 12345678. Using 12345678/versions/latest as record_id returns in an invalid request url.

Transforms 12345678/versions/latest into 12345678
@eblondel
Copy link
Owner

Thanks.
If there is a bug, please consider Zenodo has been upgraded to Invenio, but their API is still instable. A dev branch is under work at https://github.com/eblondel/zen4R/tree/127-zenodo-invenio-rdm Please consider install zen4R from this branch, and see if it answers your need

@ThierryO
Copy link
Author

I've tested the 127-zenodo-invenio-rm branch. It has the same problem as the main branch.

myrec <- zenodo$depositRecordVersion(
   myrec, delete_latest_files = TRUE, files = osm_pbf, publish = FALSE
)
##[zen4R][INFO] ZenodoManager - Creating new version for record '7962764/versions/latest' (concept DOI: '10.5281/zenodo.5792948') 
##[zen4R][ERROR] ZenodoManager - Error while creating new version: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. 
─ Session info ──────────────────────────────────────────────────────────────────────────────────────────────
 setting  value
 version  R version 4.3.2 (2023-10-31)
 os       Ubuntu 22.04.3 LTS
 system   x86_64, linux-gnu
 ui       RStudio
 language nl_BE:nl
 collate  nl_BE.UTF-8
 ctype    nl_BE.UTF-8
 tz       Europe/Brussels
 date     2023-11-28
 rstudio  2023.12.0-daily+221 Ocean Storm (desktop)
 pandoc   NA

─ Packages ──────────────────────────────────────────────────────────────────────────────────────────────────
 ! package     * version   date (UTC) lib source
 P askpass       1.1       2019-01-13 [?] CRAN (R 4.3.0)
 P assertthat    0.2.1     2019-03-21 [?] CRAN (R 4.3.0)
 P atom4R        0.3-3     2022-11-18 [?] CRAN (R 4.3.0)
 P bit           4.0.5     2022-11-15 [?] CRAN (R 4.3.0)
 P bit64         4.0.5     2020-08-30 [?] CRAN (R 4.3.0)
   brew          1.0-8     2022-09-29 [1] CRAN (R 4.3.0)
 P cli           3.6.1     2023-03-23 [?] CRAN (R 4.3.0)
   clipr         0.8.0     2022-02-22 [1] CRAN (R 4.3.0)
   commonmark    1.9.0     2023-03-17 [1] CRAN (R 4.3.0)
   cpp11         0.4.3     2022-10-12 [1] CRAN (R 4.3.0)
 P crayon        1.5.2     2022-09-29 [?] CRAN (R 4.3.0)
 P curl          5.0.0     2023-01-12 [?] CRAN (R 4.3.0)
   desc          1.4.2     2022-09-08 [1] CRAN (R 4.3.0)
 P dplyr         1.1.2     2023-04-20 [?] CRAN (R 4.3.0)
   evaluate      0.21      2023-05-05 [1] CRAN (R 4.3.0)
 P fansi         1.0.4     2023-01-22 [?] CRAN (R 4.3.0)
 P filelock      1.0.2     2018-10-05 [?] CRAN (R 4.3.0)
   fs            1.6.2     2023-04-25 [1] CRAN (R 4.3.0)
 P generics      0.1.3     2022-07-05 [?] CRAN (R 4.3.0)
 P glue          1.6.2     2022-02-24 [?] CRAN (R 4.3.0)
   highr         0.10      2022-12-22 [1] CRAN (R 4.3.0)
 P hms           1.1.3     2023-03-21 [?] CRAN (R 4.3.0)
 P httr          1.4.6     2023-05-08 [?] CRAN (R 4.3.0)
 P jsonld        2.2       2020-05-27 [?] CRAN (R 4.3.0)
 P jsonlite      1.8.4     2022-12-06 [?] CRAN (R 4.3.0)
 P keyring     * 1.3.1     2022-10-27 [?] CRAN (R 4.3.0)
 P knitr         1.42      2023-01-25 [?] CRAN (R 4.3.0)
 P lifecycle     1.0.3     2022-10-07 [?] CRAN (R 4.3.0)
 P magrittr      2.0.3     2022-03-30 [?] CRAN (R 4.3.0)
   mime          0.12      2021-09-28 [1] CRAN (R 4.3.0)
   openssl       2.0.6     2023-03-09 [1] CRAN (R 4.3.0)
 P pillar        1.9.0     2023-03-22 [?] CRAN (R 4.3.0)
 P pkgconfig     2.0.3     2019-09-22 [?] CRAN (R 4.3.0)
   pkgload       1.3.2     2022-11-16 [1] CRAN (R 4.3.0)
 P plyr          1.8.9     2023-10-02 [?] CRAN (R 4.3.2)
   prettyunits   1.1.1     2020-01-24 [1] CRAN (R 4.3.0)
   progress      1.2.2     2019-05-16 [1] CRAN (R 4.3.0)
 P purrr         1.0.1     2023-01-10 [?] CRAN (R 4.3.0)
 P R6            2.5.1     2021-08-19 [?] CRAN (R 4.3.0)
 P rappdirs      0.3.3     2021-01-31 [?] CRAN (R 4.3.0)
 P Rcpp          1.0.10    2023-01-22 [?] CRAN (R 4.3.0)
 P rdflib        0.2.6     2023-03-09 [?] CRAN (R 4.3.0)
 P readr         2.1.4     2023-02-10 [?] CRAN (R 4.3.0)
 P redland       1.0.17-16 2022-01-20 [?] CRAN (R 4.3.0)
 P rlang         1.1.1     2023-04-28 [?] CRAN (R 4.3.0)
 P roxygen2      7.2.3     2022-12-08 [?] CRAN (R 4.3.0)
   rprojroot     2.0.3     2022-04-02 [1] CRAN (R 4.3.0)
 P sodium        1.2.1     2022-06-11 [?] CRAN (R 4.3.0)
 P stringi       1.7.12    2023-01-11 [?] CRAN (R 4.3.0)
 P stringr       1.5.0     2022-12-02 [?] CRAN (R 4.3.0)
   sys           3.4.1     2022-10-18 [1] CRAN (R 4.3.0)
 P tibble        3.2.1     2023-03-20 [?] CRAN (R 4.3.0)
 P tidyr         1.3.0     2023-01-24 [?] CRAN (R 4.3.0)
 P tidyselect    1.2.0     2022-10-10 [?] CRAN (R 4.3.0)
 P tzdb          0.4.0     2023-05-12 [?] CRAN (R 4.3.0)
 P utf8          1.2.3     2023-01-31 [?] CRAN (R 4.3.0)
 P V8            4.3.0     2023-04-08 [?] CRAN (R 4.3.0)
 P vctrs         0.6.2     2023-04-19 [?] CRAN (R 4.3.0)
 P vroom         1.6.3     2023-04-28 [?] CRAN (R 4.3.0)
 P withr         2.5.0     2022-03-03 [?] CRAN (R 4.3.0)
 P xfun          0.39      2023-04-20 [?] CRAN (R 4.3.0)
 P XML           3.99-0.14 2023-03-19 [?] CRAN (R 4.3.0)
 P xml2          1.3.4     2023-04-27 [?] CRAN (R 4.3.0)
 P yaml          2.3.7     2023-01-23 [?] CRAN (R 4.3.0)
 P zen4R       * 0.9.9000  2023-11-28 [?] Github (eblondel/zen4R@f91c899)
 P zip           2.3.0     2023-04-17 [?] CRAN (R 4.3.0)

 [1] /home/thierry/Insync/thierry.onkelinx@inbo.be/Google Drive/github_2023/projecten/patrijs-steekproefkader/renv/library/R-4.3/x86_64-pc-linux-gnu
 [2] /home/thierry/.cache/R/renv/sandbox/R-4.3/x86_64-pc-linux-gnu/9a444a72

 P ── Loaded and on-disk path mismatch.

─────────────────────────────────────────────────────────────────────────────────────────────────────────────

@eblondel
Copy link
Owner

This method has not been reviewed yet with the upgrade.

@eblondel
Copy link
Owner

@ThierryO just to let you know that i'm doing my best to progress towards recovering the full stack of zen4R features based on the Zenodo InvenioRDM upgrade. I'm tracking all devs here https://github.com/eblondel/zen4R/issues?q=is%3Aissue+is%3Aopen+label%3A%22Invenio+RDM%22 and i've already applied changes based on the InvenioRDM API https://inveniordm.docs.cern.ch/reference/rest_api_index/ which is supposed to be behind the Zenodo platform now.

I'm going to work into the integration of the depositRecordVersion in the dev branch;

This said, be aware that i've been told by Zenodo team to keep in stand-by (seems I'm going too fast..) because the Zenodo upgraded API has not been officially released.

We keep in touch, and I hope we could have zen4R fully operational soon, but this will depend first on the Zenodo API stable release.

@eblondel
Copy link
Owner

Method has been migrated through #133

@eblondel eblondel closed this May 22, 2024
@ThierryO ThierryO deleted the upload_url branch May 22, 2024 09:38
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

Successfully merging this pull request may close these issues.

2 participants