I am having issues working with the jsonlite package. Before the Mac OS update to Monterey everything worked fine and now I can't even read a JSON:
example <- jsonlite::fromJSON("https://connect.ceniss.gob.hn/wspublico/API/RUP/GetDatosProgramaByAnio?Id=169&Anio=2019")
#> Error in open.connection(con, "rb"): error:06FFF089:digital envelope routines:CRYPTO_internal:bad key length
Created on 2021-12-28 by the reprex package (v2.0.1)
Any help much appreciated.
Pablo
This does appear to be Monterey-related, as it works under Ubuntu
library(jsonlite)
example <- jsonlite::fromJSON("https://connect.ceniss.gob.hn/wspublico/API/RUP/GetDatosProgramaByAnio?Id=169&Anio=2019")
class(example)
#> [1] "data.frame"
dim(example)
#> [1] 1 240
According to this S/O post, the error may be due to changes in the macOS SSL infrastructure. While this is being fixed, try
example <- jsonlite::fromJSON("http://connect.ceniss.gob.hn/wspublico/API/RUP/GetDatosProgramaByAnio?Id=169&Anio=2019")
using http
, rather than https
.
Thank you for the solution.
system
Closed
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.