rstudio / chromote

Chrome Remote Interface for R
https://rstudio.github.io/chromote/
156 stars 20 forks source link

Error in `with_random_port()`: #184

Open ISumaneev opened 1 month ago

ISumaneev commented 1 month ago

I use several versions of chromote with the last version of Google Chrome, the result is the same:

Error in with_random_port(): ! Cannot find an available port. Please try again. Caused by error in Sys.getenv(): ! wrong type for argument Backtrace:

  1. rvest::read_html_live(url)
  2. LiveHTML$new(url)
  3. rvest (local) initialize(...)
  4. chromote::ChromoteSession$new()
  5. chromote (local) initialize(...) ...
  6. chromote (local) initialize(...)
    1. Chrome$new()
    2. chromote (local) initialize(...)
    3. chromote:::launch_chrome(path, args)
    4. chromote:::with_random_port(launch_chrome_impl, path = path, args = args)

Is anyone aware of how to solve it?

gadenbuie commented 1 month ago

Please update to the latest version of chromote, v0.3.1. You're encountering a bug that was unfortunately included in v0.3.0 and that was fixed within a day of the release.

ISumaneev commented 1 month ago

Please update to the latest version of chromote, v0.3.1. You're encountering a bug that was unfortunately included in v0.3.0 and that was fixed within a day of the release.

I've tried and got this response:

Error: Chromote: timed out waiting for response to command Page.disable