Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unsafe legacy renegotiation disabled #29

Open
raffaem opened this issue Nov 7, 2023 · 2 comments
Open

unsafe legacy renegotiation disabled #29

raffaem opened this issue Nov 7, 2023 · 2 comments

Comments

@raffaem
Copy link

raffaem commented Nov 7, 2023

I installed from CRAN.

I get the following error when I try to download the list of datasets

> datasets <- get_datasets()
Error in curl::curl_fetch_memory(url, handle = handle) : 
  OpenSSL/3.1.4: error:0A000152:SSL routines::unsafe legacy renegotiation disabled
@lindamaok899
Copy link

I also am facing the same error

@luifrancgom
Copy link

You can try the following option using the package rsdmx where you can find the example I point out in https://github.com/opensdmx/rsdmx/wiki#package_overview > #####Data Structures (Key Families). It is slower that the packages used in the function get_datasets() but it works:

library(rsdmx)
library(tibble)
dsUrl <- "http://stats.oecd.org/restsdmx/sdmx.ashx/GetDataStructure/ALL"
ds <- readSDMX(dsUrl)
dsdf <- as_tibble(ds)

dsdf |> glimpse()
#> Rows: 1,691
#> Columns: 11
#> $ id                  <chr> "QNA", "PAT_IND", "TEL", "SNA_TABLE11", "LFS_SEXAG…
#> $ agencyID            <chr> "OECD", "OECD", "OECD", "OECD", "OECD", "OECD", "O…
#> $ Name.fr             <chr> "Comptes nationaux trimestriels", "Brevets - Indic…
#> $ Name.en             <chr> "Quarterly National Accounts", "Patent indicators"…
#> $ version             <chr> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA…
#> $ uri                 <chr> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA…
#> $ urn                 <chr> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA…
#> $ isExternalReference <lgl> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA…
#> $ isFinal             <lgl> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA…
#> $ validFrom           <chr> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA…
#> $ validTo             <chr> NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA…

Created on 2023-12-06 with reprex v2.0.2

Also take into account that OCDE stat is changing the API and there is a new website, https://data-explorer.oecd.org/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants