STATcubeR
STATcubeR copied to clipboard
od_catalogue(local = FALSE) fails with SSL verification error
Describe the bug Calling od_catalogue(local = FALSE) fails due to SSL verification:
> data_catalogue <- od_catalogue(local = FALSE)
Fehler in curl::curl_fetch_memory(url, handle = handle) :
SSL peer certificate or SSH remote key was not OK [data.statistik.gv.at]: server certificate verification failed. CAfile: none CRLfile: none
To Reproduce
library(STATcubeR)
data_catalogue <- od_catalogue(local = FALSE)
Expected behavior The function should download and parse the remote catalogue over HTTPS without SSL errors on a standard Linux server with a functioning system CA bundle.
Environment
> sessionInfo()
R version 4.3.0 (2023-04-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux 10 (buster)
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/atlas/libblas.so.3.10.3
LAPACK: /usr/lib/x86_64-linux-gnu/atlas/liblapack.so.3.10.3; LAPACK version 3.8.0
locale:
[1] LC_CTYPE=de_AT.UTF-8 LC_NUMERIC=C LC_TIME=de_AT.UTF-8 LC_COLLATE=de_AT.UTF-8 LC_MONETARY=de_AT.UTF-8 LC_MESSAGES=de_AT.UTF-8 LC_PAPER=de_AT.UTF-8
[8] LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=de_AT.UTF-8 LC_IDENTIFICATION=C
time zone: Europe/Vienna
tzcode source: system (glibc)
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] STATcubeR_0.5.0 data.table_1.15.0 lubridate_1.9.3 forcats_1.0.0 stringr_1.5.1 dplyr_1.1.4 purrr_1.0.2 readr_2.1.5 tidyr_1.3.1 tibble_3.2.1 ggplot2_4.0.0
[12] tidyverse_2.0.0 rvest_1.0.3
loaded via a namespace (and not attached):
[1] gtable_0.3.6 compiler_4.3.0 tidyselect_1.2.0 xml2_1.3.6 scales_1.4.0 here_1.0.1 R6_2.5.1 generics_0.1.3 curl_6.2.2 rprojroot_2.0.4
[11] pillar_1.9.0 RColorBrewer_1.1-3 tzdb_0.4.0 rlang_1.1.5 utf8_1.2.4 stringi_1.8.3 fs_1.6.3 S7_0.2.0 timechange_0.3.0 cli_3.6.2
[21] withr_3.0.0 magrittr_2.0.3 grid_4.3.0 rstudioapi_0.15.0 remotes_2.4.2.1 hms_1.1.3 lifecycle_1.0.4 vctrs_0.6.5 glue_1.7.0 farver_2.1.1
[31] fansi_1.0.6 httr_1.4.7 tools_4.3.0 pkgconfig_2.0.3
hi @DavidZenz thx for reporting, but unfortunately, i cannot reproduce. With
> library(STATcubeR)
> sessionInfo()
R version 4.5.1 (2025-06-13)
Platform: x86_64-pc-linux-gnu
Running under: Arch Linux
Matrix products: default
BLAS/LAPACK: /usr/lib/libopenblas.so.0.3; LAPACK version 3.12.0
locale:
[1] LC_CTYPE=de_AT.UTF-8 LC_NUMERIC=C
[3] LC_TIME=de_AT.UTF-8 LC_COLLATE=de_AT.UTF-8
[5] LC_MONETARY=de_AT.UTF-8 LC_MESSAGES=de_AT.UTF-8
[7] LC_PAPER=de_AT.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=de_AT.UTF-8 LC_IDENTIFICATION=C
time zone: Europe/Vienna
tzcode source: system (glibc)
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] STATcubeR_1.0.0
loaded via a namespace (and not attached):
[1] compiler_4.5.1 cli_3.6.5 pillar_1.11.1 glue_1.8.0
[5] vctrs_0.6.5 lifecycle_1.0.4 rlang_1.1.6
i get the expected result:
> data_catalogue <- od_catalogue(local = FALSE)
Downloaded 404 metadata files with `od_json()`
perhaps you should try to reproduce with an recent R and the current STATcubeR version. Perhaps it was also just a temporary server hickup.