Skip to content

htmltools_value Error: OpenSSL SSL_connect: Connection reset by peer in connection to gwfh.mranftl.com:443 #525

@hjia222

Description

@hjia222

I encountered issue with htmltools_value() in R shiny.
flextable_0.9.0

library(shiny)
library(flextable)
library(dplyr)

dat <- mtcars %>%
  mutate(car = rownames(.)) %>%
  select(car, everything())

ui <- fluidPage(
  titlePanel("mtcars"),
  sidebarLayout(
    sidebarPanel(
      sliderInput("mpg", "mpg Limit", min = 11, max = 33, value = 20)
    ),
    mainPanel(uiOutput("mtcars_ft"))
  )
)

server <- function(input, output) {
  output$mtcars_ft <- renderUI({
    req(input$mpg)
    filter(dat, mpg <= input$mpg) %>%
      flextable() %>%
      theme_vader() %>%
      autofit() %>%
      htmltools_value()
  })
}

# Run the application
shinyApp(ui = ui, server = server)

Listening on http://127.0.0.1:4088
Warning: Error in curl::curl_fetch_memory: OpenSSL SSL_connect: Connection reset by peer in connection to gwfh.mranftl.com:443
119: curl::curl_fetch_memory
118: crul_fetch
117: private$make_request
116: cli$get
115: get_gf
114:
109: installed_gfonts
107: avail_gfonts
104: flextable_html_dependencies
101: htmltools_value
100: %>%
99: renderUI [#4]
98: func
85: renderFunc
84: output$mtcars_ft
3: runApp
2: print.shiny.appobj
1:

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] dplyr_1.0.10 flextable_0.9.0 shiny_1.7.4

loaded via a namespace (and not attached):
[1] tidyselect_1.2.0 xfun_0.37 bslib_0.4.2 fontquiver_0.2.1
[5] vctrs_0.5.2 generics_0.1.3 htmltools_0.5.4 utf8_1.2.2
[9] rlang_1.1.0 jquerylib_0.1.4 later_1.3.0 pillar_1.8.1
[13] withr_2.5.0 DBI_1.1.3 httpcode_0.3.0 glue_1.6.2
[17] gfonts_0.2.0 gdtools_0.3.2 uuid_1.1-0 lifecycle_1.0.3
[21] ragg_1.2.5 zip_2.2.2 memoise_2.0.1 evaluate_0.20
[25] knitr_1.42 fastmap_1.1.1 httpuv_1.6.9 fontLiberation_0.1.0
[29] curl_5.0.0 fansi_1.0.3 triebeard_0.4.1 urltools_1.7.3
[33] Rcpp_1.0.10 xtable_1.8-4 openssl_2.0.6 promises_1.2.0.1
[37] cachem_1.0.7 jsonlite_1.8.4 mime_0.12 systemfonts_1.0.4
[41] fontBitstreamVera_0.1.1 textshaping_0.3.6 askpass_1.1 digest_0.6.31
[45] grid_4.2.2 cli_3.6.0 tools_4.2.2 magrittr_2.0.3
[49] sass_0.4.5 tibble_3.1.8 crul_1.3 crayon_1.5.2
[53] pkgconfig_2.0.3 ellipsis_0.3.2 rsconnect_0.8.29 data.table_1.14.8
[57] xml2_1.3.3 assertthat_0.2.1 rmarkdown_2.20 officer_0.6.1
[61] rstudioapi_0.14.0-9000 R6_2.5.1 compiler_4.2.2

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions