NCEAS / metajam

Bringing data and metadata togetheR
https://nceas.github.io/metajam/
Apache License 2.0
16 stars 7 forks source link

User have SSL error message when donwloading data from KNB #135

Closed brunj7 closed 2 years ago

brunj7 commented 3 years ago

Here is the error message the user is getting

Error in h(simpleError(msg, call)) : error in evaluating the argument 'x' in selecting a method for function 'query': SSL
certificate problem: certificate has expired

code:

alaska_data_obj = metajam::download_d1_data(data_url = "https://knb.ecoinformatics.org/knb/d1/mn/v2/object/urn%3Auuid%3A7fc6f6db-c5ea-426a-a743-1f2edafb43b8", path = ".")

Session Info:

R version 4.1.0 (2021-05-18)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Mojave 10.14.6

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.1/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] here_1.0.1           metajam_0.2.3        dataRetrieval_2.7.10
 [4] forcats_0.5.1        stringr_1.4.0        dplyr_1.0.7         
 [7] purrr_0.3.4          readr_2.0.0          tidyr_1.1.3         
[10] tibble_3.1.3         ggplot2_3.3.5        tidyverse_1.3.1     

loaded via a namespace (and not attached):
 [1] httr_1.4.2         jsonlite_1.7.2     modelr_0.1.8       assertthat_0.2.1  
 [5] dataone_2.2.1      cellranger_1.1.0   yaml_2.2.1         pillar_1.6.2      
 [9] backports_1.2.1    glue_1.4.2         uuid_0.1-4         digest_0.6.27     
[13] redland_1.0.17-14  rvest_1.0.1        EML_2.0.5          colorspace_2.0-2  
[17] plyr_1.8.6         htmltools_0.5.2    XML_3.99-0.8       pkgconfig_2.0.3   
[21] broom_0.7.9        haven_2.4.2        scales_1.1.1       tzdb_0.1.2        
[25] emld_0.5.1         proxy_0.4-26       generics_0.1.0     ellipsis_0.3.2    
[29] withr_2.4.2        lazyeval_0.2.2     cli_3.0.1          magrittr_2.0.1    
[33] crayon_1.4.1       readxl_1.3.1       evaluate_0.14      fs_1.5.0          
[37] fansi_0.5.0        parsedate_1.2.1    xml2_1.3.2         class_7.3-19      
[41] hash_2.2.6.1       tools_4.1.0        hms_1.1.0          lifecycle_1.0.0   
[45] V8_3.4.2           munsell_0.5.0      reprex_2.0.0       compiler_4.1.0    
[49] e1071_1.7-8        jqr_1.2.1          rlang_0.4.11       classInt_0.4-3    
[53] units_0.7-2        grid_4.1.0         jsonld_2.2         rstudioapi_0.13   
[57] datapack_1.4.0     base64enc_0.1-3    rmarkdown_2.10     gtable_0.3.0      
[61] roxygen2_7.1.1     DBI_1.1.1          curl_4.3.2         R6_2.5.1          
[65] lubridate_1.7.10   knitr_1.33         fastmap_1.1.0      utf8_1.2.2        
[69] rprojroot_2.0.2    KernSmooth_2.23-20 stringi_1.7.4      Rcpp_1.0.7        
[73] vctrs_0.3.8        sf_1.0-2           dbplyr_2.1.1       tidyselect_1.1.1  
[77] xfun_0.25
brunj7 commented 3 years ago

I can not reproduce the error. The main difference I see is an older version of MAC OSX... so maybe more a version of external libraries could be at the root of the problem

From the 25 students with various laptop configurations, he is the only one to have reported a problem

clnsmth commented 3 years ago

Hey folks. The user's issue may be related to expiration of the Let's Encrypt's root certificate. Read more about the issue and potential solutions here: https://portswigger.net/daily-swig/lets-encrypt-root-cert-update-catches-out-many-big-name-tech-firms

It may very well be isolated to the user side and not a bug in metajam or the KNB.

brunj7 commented 2 years ago

thank you @clnsmth. The student ended up using our server instead of his personal laptop. Note that he was using macosx 10.11 which might have been at the root of the problem. closing this issue