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 generateIdentifier: Error generating ID of type UUID: Client error: (400) Bad Request #300

Open
earnaud opened this issue Jan 26, 2023 · 1 comment

Comments

@earnaud
Copy link

earnaud commented Jan 26, 2023

Hi,

I am reusing an old function I wrote to upload data packages to a D1Client. Here are the steps to reproduce (once the tokens are set):

d1c <- D1Client("STAGING", "urn:node:mnTestARCTIC")
generateIdentifier(d1c@mn, scheme = "uuid")

Error is:

Error in .local(x, ...) : 
  Error generating ID of type uuid: Client error: (400) Bad Request

This likely seems like a misformulation of the request.
I am using {dataone} v.2.2.1.

@mbjones
Copy link
Member

mbjones commented Jan 26, 2023

Thanks for the report, @earnaud . I tried to reproduce it, but it worked fine for me.

> library(dataone)
> d1c <- D1Client("STAGING", "urn:node:mnTestARCTIC")
> generateIdentifier(d1c@mn, scheme = "uuid")
[1] "urn:uuid:d5e96094-6929-49dc-9ffe-b41695c4b5ba"

The only major difference was that I used dataone v 2.2.2, the current release. Could you try it again with version 2.2.2? If it fails, could you report the output of devtools::session_info() here? My session info is below for reference of one that worked. Thanks!

Session info for passing environment that works
> devtools::session_info()
─ Session info ──────────────────────────────────────────────────────────────────────────────────────────────────────────
 setting  value
 version  R version 4.1.1 (2021-08-10)
 os       macOS Big Sur 10.16
 system   x86_64, darwin17.0
 ui       X11
 language (EN)
 collate  en_US.UTF-8
 ctype    en_US.UTF-8
 tz       America/Juneau
 date     2023-01-26
 pandoc   2.2.1 @ /usr/local/bin/pandoc

─ Packages ──────────────────────────────────────────────────────────────────────────────────────────────────────────────
 package     * version   date (UTC) lib source
 askpass       1.1       2019-01-13 [1] CRAN (R 4.1.0)
 base64enc     0.1-3     2015-07-28 [1] CRAN (R 4.1.0)
 cachem        1.0.6     2021-08-19 [1] CRAN (R 4.1.0)
 callr         3.7.0     2021-04-20 [1] CRAN (R 4.1.0)
 cli           3.3.0     2022-04-25 [1] CRAN (R 4.1.2)
 crayon        1.5.1     2022-03-26 [1] CRAN (R 4.1.2)
 curl          4.3.2     2021-06-23 [1] CRAN (R 4.1.0)
 dataone     * 2.2.2     2022-06-10 [1] CRAN (R 4.1.2)
 datapack      1.4.1     2022-06-10 [1] CRAN (R 4.1.2)
 desc          1.4.0     2021-09-28 [1] CRAN (R 4.1.0)
 devtools      2.4.3     2021-11-30 [1] CRAN (R 4.1.0)
 digest        0.6.29    2021-12-01 [1] CRAN (R 4.1.0)
 ellipsis      0.3.2     2021-04-29 [1] CRAN (R 4.1.0)
 fastmap       1.1.0     2021-01-25 [1] CRAN (R 4.1.0)
 fs            1.5.2     2021-12-08 [1] CRAN (R 4.1.0)
 glue          1.6.2     2022-02-24 [1] CRAN (R 4.1.2)
 httr          1.4.3     2022-05-04 [1] RSPM (R 4.1.1)
 jsonlite      1.8.0     2022-02-22 [1] CRAN (R 4.1.2)
 knitr         1.38      2022-03-25 [1] CRAN (R 4.1.2)
 lifecycle     1.0.1     2021-09-24 [1] CRAN (R 4.1.0)
 magrittr      2.0.3     2022-03-30 [1] CRAN (R 4.1.2)
 memoise       2.0.0     2021-01-26 [1] CRAN (R 4.1.0)
 openssl       2.0.2     2022-05-24 [1] CRAN (R 4.1.2)
 parsedate     1.2.1     2021-04-20 [1] CRAN (R 4.1.0)
 pkgbuild      1.3.0     2021-12-09 [1] CRAN (R 4.1.0)
 pkgload       1.2.3     2021-10-13 [1] CRAN (R 4.1.0)
 plyr          1.8.7     2022-03-24 [1] CRAN (R 4.1.2)
 prettyunits   1.1.1     2020-01-24 [1] CRAN (R 4.1.0)
 processx      3.5.2     2021-04-30 [1] CRAN (R 4.1.0)
 ps            1.6.0     2021-02-28 [1] CRAN (R 4.1.0)
 purrr         0.3.4     2020-04-17 [1] CRAN (R 4.1.0)
 R6            2.5.1     2021-08-19 [1] CRAN (R 4.1.0)
 Rcpp          1.0.8.3   2022-03-17 [1] CRAN (R 4.1.2)
 redland       1.0.17-16 2022-01-20 [1] CRAN (R 4.1.2)
 remotes       2.4.1     2021-09-29 [1] CRAN (R 4.1.0)
 rlang         1.0.4     2022-07-12 [1] CRAN (R 4.1.2)
 roxygen2      7.1.2     2021-09-08 [1] CRAN (R 4.1.0)
 rprojroot     2.0.2     2020-11-15 [1] CRAN (R 4.1.0)
 sessioninfo   1.2.2     2021-12-06 [1] CRAN (R 4.1.0)
 stringi       1.7.6     2021-11-29 [1] CRAN (R 4.1.0)
 stringr       1.4.0     2019-02-10 [1] CRAN (R 4.1.0)
 testthat      3.1.0     2021-10-04 [1] CRAN (R 4.1.0)
 usethis       2.1.0     2021-10-16 [1] CRAN (R 4.1.0)
 uuid          1.0-3     2021-11-01 [1] CRAN (R 4.1.0)
 withr         2.5.0     2022-03-03 [1] CRAN (R 4.1.2)
 xfun          0.30      2022-03-02 [1] CRAN (R 4.1.2)
 XML           3.99-0.8  2021-09-17 [1] CRAN (R 4.1.0)
 xml2          1.3.3     2021-11-30 [1] CRAN (R 4.1.0)
 zip           2.2.0     2021-05-31 [1] CRAN (R 4.1.0)

 [1] /Library/Frameworks/R.framework/Versions/4.1/Resources/library

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

2 participants