-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Labels
Description
Please specify whether your issue is about:
Hi There,
I was trying out some of the functions for the dataverse package, and came across it creating a 500 error every time I tried to execute the function. Unfortunately, I can't put my server and API key, but I can show what I did attempt:
## load package
library("dataverse")
## code
meta2<-list(title="test",author="Li,Thomas",datasetContact="Fish, Fishy",dsDescription="FISH",subject="Quantitative Sciences",depositor="Fish, Fishy",dateOfDeposit="Fish Time",datasetContactEmail="fishyfishery@tunahalibut.com")
create_dataset("MLPOCs2018",body=meta2)
When running the debugger, I noticed the 500 error occurs when the POST() function is used from the 'httr' package (which makes sense), so I am trying to see the cause of this (be it permission or something else).
Just in case, the sessionInfo() yields the following:
R version 3.6.0 (2019-04-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] tools stats graphics grDevices utils datasets methods base
other attached packages:
[1] zip_2.0.2 flowCore_1.50.0 magick_2.0 ggplot2_3.2.0 usethis_1.5.0 devtools_2.0.2
[7] magrittr_1.5 data.table_1.12.2 dplyr_0.8.1 dataverse_0.2.0
loaded via a namespace (and not attached):
[1] tidyselect_0.2.5 remotes_2.1.0 purrr_0.3.2 lattice_0.20-38 pcaPP_1.9-73
[6] colorspace_1.4-1 testthat_2.1.1 stats4_3.6.0 yaml_2.2.0 rlang_0.4.0
[11] pkgbuild_1.0.3 pillar_1.4.1 glue_1.3.1 withr_2.1.2 BiocGenerics_0.30.0
[16] sessioninfo_1.1.1 matrixStats_0.54.0 robustbase_0.93-5 munsell_0.5.0 gtable_0.3.0
[21] mvtnorm_1.0-11 memoise_1.1.0 Biobase_2.44.0 callr_3.2.0 ps_1.3.0
[26] curl_3.3 parallel_3.6.0 DEoptimR_1.0-8 Rcpp_1.0.1 corpcor_1.6.9
[31] backports_1.1.4 scales_1.0.0 desc_1.2.0 pkgload_1.0.2 jsonlite_1.6
[36] graph_1.62.0 fs_1.3.1 digest_0.6.19 processx_3.3.1 grid_3.6.0
[41] rprojroot_1.3-2 cli_1.1.0 lazyeval_0.2.2 tibble_2.1.3 cluster_2.1.0
[46] crayon_1.3.4 rrcov_1.4-7 pkgconfig_2.0.2 MASS_7.3-51.4 xml2_1.2.0
[51] prettyunits_1.0.2 assertthat_0.2.1 httr_1.4.0 rstudioapi_0.10 R6_2.4.0
[56] compiler_3.6.0
If needed, I can also provide the log from the server that shows the "API internal error"
Thanks!
Reactions are currently unavailable