ropensci / nomisr

Access UK official statistics from the Nomis database through R.
https://docs.ropensci.org/nomisr
Other
46 stars 12 forks source link

'SLL certificate has expired' error #32

Open jessCfisher opened 2 years ago

jessCfisher commented 2 years ago

I'm trying to map the UK census data in R for lower super output areas.

The 'nomisR' package is installing successfully, but the first time I try to run a function to access data (e.g. 'nomis_data_info', 'nomis_get_data' or 'nomis_search') I get the same error. Here's what happens when I run the code from the R documentation:

jobseekers_country <- nomis_get_data( id = "NM_1_1", time = "latest", geography = "TYPE499", measures = c(20100, 20201), sex = 5)

Error in curl::curl_fetch_memory(url, handle = handle) : SSL certificate problem: certificate has expired

I have tried installing Rcurl and curl packages, and running different things on the terminal to prepare my system. There seems to be lots of discussion online about certificate problems with other packages that use API's. Any ideas greatly appreciated! Thanks

evanodell commented 2 years ago

Hi Jess, is this still happening? It appears to have been an issue with the Nomis API, I've not been able to recreate it.