You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to use get_dataset_ibamam, I get error: Error in open.connection(con, "rb"): SSL certificate problem: self signed certificate in certificate chain. This seems to be suffering form the same issue that datazoom.amazonia is facing: datazoompuc/datazoom.amazonia#107
Unfortunately, the temporary workaround there to use options(download.file.method="curl", download.file.extra="-k -L") won't work, as get_dataset_ibamam() is using directly jsonlite::fromJSON?
Thanks!
library(Ibamam)
fines_applied_Para<- get_dataset_ibamam(dataset="distribuidas", uf="PA")
#> Error in open.connection(con, "rb"): SSL certificate problem: self signed certificate in certificate chain## internal code:texto_link<-"Arrecadacao/arrecadacaobenstutelados"uf<-"PA"jsonlite::fromJSON(paste0("http://dadosabertos.ibama.gov.br/dados/SICAFI/",
uf, "/", texto_link, ".json"))
#> Error in open.connection(con, "rb"): SSL certificate problem: self signed certificate in certificate chain## raw code:tm<- tempfile()
download.file(paste0("http://dadosabertos.ibama.gov.br/dados/SICAFI/",
uf, "/", texto_link, ".json"),
destfile=tm)
#> Warning in download.file(paste0("http://dadosabertos.ibama.gov.br/dados/#> SICAFI/", : URL 'https://dadosabertos.ibama.gov.br/dados/SICAFI/PA/Arrecadacao/#> arrecadacaobenstutelados.json': status was 'SSL peer certificate or SSH remote#> key was not OK'#> Error in download.file(paste0("http://dadosabertos.ibama.gov.br/dados/SICAFI/", : cannot open URL 'http://dadosabertos.ibama.gov.br/dados/SICAFI/PA/Arrecadacao/arrecadacaobenstutelados.json'## workaround
options(download.file.method="curl", download.file.extra="-k -L")
download.file(paste0("http://dadosabertos.ibama.gov.br/dados/SICAFI/",
uf, "/", texto_link, ".json"),
destfile=tm)
Thanks for this package!!
Trying to use
get_dataset_ibamam
, I get error: Error in open.connection(con, "rb"): SSL certificate problem: self signed certificate in certificate chain. This seems to be suffering form the same issue thatdatazoom.amazonia
is facing: datazoompuc/datazoom.amazonia#107Unfortunately, the temporary workaround there to use
options(download.file.method="curl", download.file.extra="-k -L")
won't work, asget_dataset_ibamam()
is using directlyjsonlite::fromJSON
?Thanks!
Created on 2022-06-29 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered: