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

Can't Open Chrome Driver in shinyapps.io #369

Open
saleforecast1 opened this issue Dec 7, 2023 · 1 comment
Open

Can't Open Chrome Driver in shinyapps.io #369

saleforecast1 opened this issue Dec 7, 2023 · 1 comment

Comments

@saleforecast1
Copy link

I want to run ChromeDriver in ShinyApps.io But I got an error:

Error:

Selenium message:unknown error: cannot find Chrome binary
(Driver info: chromedriver=114.0.5735.90 (386bc09e8f4f2e025eddae123f36f6263096ae49-refs/branch-heads/5735@{#1052}),platform=Linux 6.2.0-1012-aws x86_64)
Could not open chrome browser.
Client error message:
Summary: UnknownError
Detail: An unknown server-side error occurred while processing the command.
Further Details: run errorDetails method
Check server log for further details.
Warning: Error in checkError: Undefined error in httr call. httr output: length(url) == 1 is not TRUE

Shiny Code:

library(shiny)
library(wdman)
library(RSelenium)
library(httr)    
library(netstat)

ui <- fluidPage(
  actionButton("btn", "Click Me!"),
  textOutput("txt"),
)

server <- function(input, output, session) {
  observeEvent(input$btn, {
    #connect chrome driver
    client_server <- rsDriver(
      browser = "chrome",
      chromever = "119.0.5735.90",
      verbose = FALSE,
      port = free_port(),
    )
    
    # connect remote driver to client
    remDr <- client_server$client
    remDr$navigate("http://www.google.com")
    remDr$maxWindowSize()
    title <- remDr$getTitle()
    output$txt <- renderText(as.character(title))
    # clean up
    remDr$quit()
  })
}

shinyApp(ui, server)

How can I fix this error?

@jacpete
Copy link

jacpete commented Jul 5, 2024

+1 for Support Ticket 107035

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

2 participants