r-hub / rhub

R-hub API client
https://r-hub.github.io/rhub/
Other
353 stars 51 forks source link

Internal error from `list_my_checks()` #490

Closed jonathan-g closed 2 years ago

jonathan-g commented 2 years ago

I have freshly validated two emails. I validated each email today. I entered the new tokens using validate_emails(). I checked that list_validated_emails() gives the correct tokens.

However, I get errors from list_my_checks. One email gives "Internal error" and the other gives "Email address not validated"

library(rhub)

# List of validated email addresses
list_validated_emails()$email
#> [1] "jonathan.gilligan@vanderbilt.edu" "jonathan.gilligan@gmail.com"

list_my_checks(list_validated_emails()$email[1])
#> Error in query("LIST BUILDS EMAIL", params = list(email = email, token = email_get_token(email))): Internal error

list_my_checks(list_validated_emails()$email[2])
#> Error in query("LIST BUILDS EMAIL", params = list(email = email, token = email_get_token(email))): Email address not validated

sessionInfo()
#> R version 4.1.1 (2021-08-10)
#> Platform: x86_64-w64-mingw32/x64 (64-bit)
#> Running under: Windows 10 x64 (build 19043)
#> 
#> Matrix products: default
#> 
#> locale:
#> [1] LC_COLLATE=English_United States.1252 
#> [2] LC_CTYPE=English_United States.1252   
#> [3] LC_MONETARY=English_United States.1252
#> [4] LC_NUMERIC=C                          
#> [5] LC_TIME=English_United States.1252    
#> 
#> attached base packages:
#> [1] stats     graphics  grDevices utils     datasets  methods   base     
#> 
#> other attached packages:
#> [1] rhub_1.1.1.9000
#> 
#> loaded via a namespace (and not attached):
#>  [1] pillar_1.6.4           compiler_4.1.1         highr_0.9             
#>  [4] prettyunits_1.1.1      R.methodsS3_1.8.1      R.utils_2.11.0        
#>  [7] tools_4.1.1            uuid_0.1-4             pkgbuild_1.2.0        
#> [10] digest_0.6.28          jsonlite_1.7.2         evaluate_0.14         
#> [13] lifecycle_1.0.1        tibble_3.1.5           R.cache_0.15.0        
#> [16] pkgconfig_2.0.3        rlang_0.99.0.9000      reprex_2.0.1          
#> [19] whoami_1.3.0           cli_3.0.1              rstudioapi_0.13.0-9000
#> [22] curl_4.3.2             yaml_2.2.1             xopen_1.0.0           
#> [25] xfun_0.27              fastmap_1.1.0          httr_1.4.2            
#> [28] withr_2.4.2            styler_1.6.2           stringr_1.4.0         
#> [31] knitr_1.36             rappdirs_0.3.3         desc_1.4.0            
#> [34] fs_1.5.0               vctrs_0.3.8            rprojroot_2.0.2       
#> [37] parsedate_1.2.1        glue_1.4.2             R6_2.5.1              
#> [40] rematch_1.0.1          processx_3.5.2         fansi_0.5.0           
#> [43] rcmdcheck_1.4.0        rmarkdown_2.11.2.9000  purrr_0.3.4           
#> [46] callr_3.7.0            magrittr_2.0.1         ps_1.6.0              
#> [49] backports_1.2.1        ellipsis_0.3.2         htmltools_0.5.2       
#> [52] assertthat_0.2.1       utf8_1.2.2             stringi_1.7.5         
#> [55] crayon_1.4.1           R.oo_1.24.0

Created on 2021-10-22 by the reprex package (v2.0.1)

Related issues: #334, #459

gaborcsardi commented 2 years ago

Probably a validation issue. You can try to re-validate your email address or to email admin@r-hub.io for assistance specific to your case.