Error in open.connection(con, "rb") : SSL certificate problem: certificate has expired
BillKapa opened this issue · comments
Getting this error when running commands such as
fpl_get_teams()
Error in open.connection(con, "rb") :
SSL certificate problem: certificate has expired
this sort of error suggests it was a problem on FPL's side at the time you tried this out. Here's what I just got:
library(fplr)
fpl_get_teams()
#> # A tibble: 20 × 21
#> code draw form id loss name played points position short_name
#> <int> <int> <lgl> <int> <int> <chr> <int> <int> <int> <chr>
#> 1 3 0 NA 1 0 Arsenal 0 0 0 ARS
#> 2 7 0 NA 2 0 Aston Villa 0 0 0 AVL
#> 3 94 0 NA 3 0 Brentford 0 0 0 BRE
#> 4 36 0 NA 4 0 Brighton 0 0 0 BHA
#> 5 90 0 NA 5 0 Burnley 0 0 0 BUR
#> 6 8 0 NA 6 0 Chelsea 0 0 0 CHE
#> 7 31 0 NA 7 0 Crystal Palace 0 0 0 CRY
#> 8 11 0 NA 8 0 Everton 0 0 0 EVE
#> 9 13 0 NA 9 0 Leicester 0 0 0 LEI
#> 10 2 0 NA 10 0 Leeds 0 0 0 LEE
#> 11 14 0 NA 11 0 Liverpool 0 0 0 LIV
#> 12 43 0 NA 12 0 Man City 0 0 0 MCI
#> 13 1 0 NA 13 0 Man Utd 0 0 0 MUN
#> 14 4 0 NA 14 0 Newcastle 0 0 0 NEW
#> 15 45 0 NA 15 0 Norwich 0 0 0 NOR
#> 16 20 0 NA 16 0 Southampton 0 0 0 SOU
#> 17 6 0 NA 17 0 Spurs 0 0 0 TOT
#> 18 57 0 NA 18 0 Watford 0 0 0 WAT
#> 19 21 0 NA 19 0 West Ham 0 0 0 WHU
#> 20 39 0 NA 20 0 Wolves 0 0 0 WOL
#> # … with 11 more variables: strength <int>, team_division <lgl>,
#> # unavailable <lgl>, win <int>, strength_overall_home <int>,
#> # strength_overall_away <int>, strength_attack_home <int>,
#> # strength_attack_away <int>, strength_defence_home <int>,
#> # strength_defence_away <int>, pulse_id <int>
Created on 2022-01-06 by the reprex package (v2.0.1)
Session info
sessioninfo::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#> setting value
#> version R version 4.1.1 (2021-08-10)
#> os macOS Catalina 10.15.7
#> system x86_64, darwin17.0
#> ui X11
#> language (EN)
#> collate en_GB.UTF-8
#> ctype en_GB.UTF-8
#> tz Europe/London
#> date 2022-01-06
#>
#> ─ Packages ───────────────────────────────────────────────────────────────────
#> package * version date lib source
#> askpass 1.1 2019-01-13 [1] CRAN (R 4.1.0)
#> cli 3.0.1 2021-07-17 [1] CRAN (R 4.1.0)
#> crayon 1.4.1 2021-02-08 [1] CRAN (R 4.1.0)
#> curl 4.3.2 2021-06-23 [1] CRAN (R 4.1.0)
#> digest 0.6.27 2020-10-24 [1] CRAN (R 4.1.0)
#> ellipsis 0.3.2 2021-04-29 [1] CRAN (R 4.1.0)
#> evaluate 0.14 2019-05-28 [1] CRAN (R 4.1.0)
#> fansi 0.5.0 2021-05-25 [1] CRAN (R 4.1.0)
#> fastmap 1.1.0 2021-01-25 [1] CRAN (R 4.1.0)
#> fplr * 1.0.1.9000 2021-10-21 [1] Github (ewenme/fplr@a784186)
#> fs 1.5.0 2020-07-31 [1] CRAN (R 4.1.0)
#> glue 1.4.2 2020-08-27 [1] CRAN (R 4.1.0)
#> highr 0.9 2021-04-16 [1] CRAN (R 4.1.0)
#> htmltools 0.5.2 2021-08-25 [1] CRAN (R 4.1.0)
#> jsonlite 1.7.2 2020-12-09 [1] CRAN (R 4.1.0)
#> knitr 1.33 2021-04-24 [1] CRAN (R 4.1.0)
#> lifecycle 1.0.0 2021-02-15 [1] CRAN (R 4.1.0)
#> magrittr 2.0.1 2020-11-17 [1] CRAN (R 4.1.0)
#> pillar 1.6.2 2021-07-29 [1] CRAN (R 4.1.0)
#> pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.1.0)
#> reprex 2.0.1 2021-08-05 [1] CRAN (R 4.1.0)
#> rlang 0.4.11 2021-04-30 [1] CRAN (R 4.1.0)
#> rmarkdown 2.11 2021-09-14 [1] CRAN (R 4.1.0)
#> rstudioapi 0.13 2020-11-12 [1] CRAN (R 4.1.0)
#> sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 4.1.0)
#> stringi 1.7.4 2021-08-25 [1] CRAN (R 4.1.0)
#> stringr 1.4.0 2019-02-10 [1] CRAN (R 4.1.0)
#> tibble 3.1.4 2021-08-25 [1] CRAN (R 4.1.0)
#> utf8 1.2.2 2021-07-24 [1] CRAN (R 4.1.0)
#> vctrs 0.3.8 2021-04-29 [1] CRAN (R 4.1.0)
#> withr 2.4.2 2021-04-18 [1] CRAN (R 4.1.0)
#> xfun 0.25 2021-08-06 [1] CRAN (R 4.1.0)
#> yaml 2.2.1 2020-02-01 [1] CRAN (R 4.1.0)
#>
#> [1] /Library/Frameworks/R.framework/Versions/4.1/Resources/library