chromote icon indicating copy to clipboard operation
chromote copied to clipboard

Error in `with_random_port()` when using read_html_live()

Open delt87 opened this issue 9 months ago • 1 comments

It seems that issue I'm encountering was addressed in earlier release but I'm still getting an error when I try to start a chromote session. My chrome version is Version 138.0.7204.101 (Official Build) (64-bit) I'm also noticing that I get a large number of Google Chrome instances as shown in the snippet below (there are at least 10 to 20 more instances of Chrome).

library(rvest)
library(chromote)

read_html_live("www.google.com")

> read_html_live("www.google.com")
Error in `with_random_port()`:
! Cannot find an available port. Please try again.
Caused by error in `startup()`:
! Failed to start chrome. Chrome is available on your system, so this error may be a configuration issue. Try `chromote_info()` to check and verify your settings. No error messages were logged.
Run `rlang::last_trace()` to see where the error occurred.

session info:

> sessionInfo()
R version 4.4.1 (2024-06-14 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 10 x64 (build 19045)

Matrix products: default


locale:
[1] LC_COLLATE=English_United States.utf8  LC_CTYPE=English_United States.utf8    LC_MONETARY=English_United States.utf8 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.utf8    

time zone: America/New_York
tzcode source: internal

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

other attached packages:
[1] chromote_0.5.1 rvest_1.0.4   

loaded via a namespace (and not attached):
 [1] later_1.4.2       R6_2.5.1          fastmap_1.2.0     websocket_1.4.4   magrittr_2.0.3    glue_1.7.0        lifecycle_1.0.4   ps_1.7.7          xml2_1.3.6        promises_1.3.3   
[11] cli_3.6.3         processx_3.8.4    compiler_4.4.1    httr_1.4.7        rstudioapi_0.16.0 tools_4.4.1       Rcpp_1.0.13       rlang_1.1.4       jsonlite_1.8.8 
Image

delt87 avatar Jul 13 '25 23:07 delt87