ropensci / treebase

An R interface to the treeBASE API (now on CRAN)
https://docs.ropensci.org/treebase
Creative Commons Zero v1.0 Universal
10 stars 4 forks source link

CertGetCertificateChain trust error #17

Open EvoLandEco opened 6 months ago

EvoLandEco commented 6 months ago

m <- treebase::download_metadata("2019-01-01", by="until") gives error:

schannel: CertGetCertificateChain trust error CERT_TRUST_IS_UNTRUSTED_ROOT

If I change httr setting by httr::set_config(httr::config(ssl_verifypeer=0L)), rerunning the download_metadata gives another error:

schannel: CertGetCertificateChain trust error CERT_TRUST_IS_NOT_TIME_VALID

EvoLandEco commented 6 months ago

Found a solution for the issue:

library(RCurl)
options(RCurlOptions = list(cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl")))

However, then I encountered the same issue XML content does not seem to be XML: '' as reported by @gtiley in https://github.com/ropensci/treebase/issues/16#issuecomment-1179077970_