0

I receive the following error:

Error in checkError(res) : 
  Undefined error in httr call. httr output: Timeout was reached: [192.168.99.100:4445] Connection timed out after 10002 milliseconds

After running this code using RSelenium to bind R to the virtual OS:

library(RSelenium)


eCaps <- list(chromeOptions = list(prefs = list("profile.default_content_settings.popups" = 0L,
                                                 "download.prompt_for_download" = FALSE,
                                                 "download.default_directory" = "home/seluser/Downloads")))

remDr <- remoteDriver(browserName= "chrome", port=4445L, extraCapabilities = eCaps, remoteServerAddr = "192.168.99.100",)

remDr$open()

remDr$open() is what triggers the error. I saw someone had suggested this: httr::GET("http://cran.r-project.org/Rlogo.jpg", config = httr::config(connecttimeout = 60)) but that doesn't work for me.

I'm new to dynamic web scraping, thanks in advance!!!

Nad Pat
  • 2,995
  • 3
  • 9
  • 19
  • refer https://stackoverflow.com/questions/45395849/cant-execute-rsdriver-connection-refused https://stackoverflow.com/questions/42468831/how-to-set-up-rselenium-for-r – Nad Pat Sep 15 '21 at 15:33

0 Answers0