0

I'm using R 3.5.2 version. And 1.4.0 version for httr package.

I calling an restApi Get:

CallingRestAPI = function(url){
  call.response <- GET(url = url, authenticate(username, password , type = "ntlm"))
  return(call.response)
}

Was working fine suddenly giving this error:

Error in curl::curl_fetch_memory(url, handle = handle) : 
  schannel: CertGetCertificateChain trust error CERT_TRUST_IS_UNTRUSTED_ROOT
Brock Adams
  • 90,639
  • 22
  • 233
  • 295
Kazim Ali
  • 1
  • 1
  • 1

2 Answers2

2

Running this fixed it for me per this post:

httr::set_config(httr::config(ssl_verifypeer=0L))
Feetball
  • 56
  • 3
1

Update httr to the development version:

devtools::install_github('r-lib/httr')

or

remotes::install_github("r-lib/httr")

See:

Eli Berkow
  • 2,628
  • 1
  • 12
  • 22