ropensci / taxize

A taxonomic toolbelt for R
https://docs.ropensci.org/taxize
Other
267 stars 60 forks source link

Classification fails randomly #901

Closed bomeara closed 1 year ago

bomeara commented 1 year ago

Running code like tiny <- downstream('Demospongiae', db='ncbi', downto="species") would fail randomly (ENTREZ key used); adding some debugging info to check, it would be at different taxa each time, but always whenever res$raise_for_status() would return Error : Bad Request (HTTP 400). I'm about to submit a pull request that addresses this.

Session Info ```r R version 4.2.0 (2022-04-22) Platform: aarch64-apple-darwin20 (64-bit) Running under: macOS Monterey 12.6 Matrix products: default BLAS: /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/lib/libRblas.0.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/lib/libRlapack.dylib locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] taxize_0.9.100 devtools_2.4.4 usethis_2.1.6 loaded via a namespace (and not attached): [1] Rcpp_1.0.9 ape_5.6-2 lattice_0.20-45 prettyunits_1.1.1 [5] ps_1.7.1 zoo_1.8-11 rprojroot_2.0.3 digest_0.6.30 [9] foreach_1.5.2 utf8_1.2.2 mime_0.12 R6_2.5.1 [13] plyr_1.8.7 pillar_1.8.1 rlang_1.0.6 curl_4.3.3 [17] uuid_1.1-0 data.table_1.14.4 miniUI_0.1.1.1 whisker_0.4 [21] callr_3.7.2 urlchecker_1.0.1 urltools_1.7.3 stringr_1.4.1 [25] htmlwidgets_1.5.4 triebeard_0.3.0 shiny_1.7.2 compiler_4.2.0 [29] httpuv_1.6.6 pkgconfig_2.0.3 pkgbuild_1.3.1 conditionz_0.1.0 [33] htmltools_0.5.3 tibble_3.1.8 httpcode_0.3.0 codetools_0.2-18 [37] reshape_0.8.9 fansi_1.0.3 crayon_1.5.2 withr_2.5.0 [41] later_1.3.0 crul_1.3 grid_4.2.0 nlme_3.1-160 [45] jsonlite_1.8.3 xtable_1.8-4 lifecycle_1.0.3 magrittr_2.0.3 [49] cli_3.4.1 stringi_1.7.8 cachem_1.0.6 fauxpas_0.5.0 [53] fs_1.5.2 promises_1.2.0.1 remotes_2.4.2 xml2_1.3.3 [57] ellipsis_0.3.2 vctrs_0.4.2 iterators_1.0.14 tools_4.2.0 [61] bold_1.2.0 glue_1.6.2 purrr_0.3.5 processx_3.7.0 [65] pkgload_1.3.0 parallel_4.2.0 fastmap_1.1.0 sessioninfo_1.2.2 [69] memoise_2.0.1 profvis_0.3.7 ```
bomeara commented 1 year ago

PR merged to fix this