连接到远程服务器时超时

问题描述

我收到以下错误

checkerror(res) 中的错误: httr 调用中的未定义错误。 httr 输出:已达到超时:[192.168.99.100:4445] 10002 毫秒后连接超时

使用 RSelenium 运行此代码将 R 绑定到虚拟操作系统后:

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() 是触发错误的原因。我看到有人这样建议:​​httr::GET("http://cran.r-project.org/Rlogo.jpg",config = httr::config(connecttimeout = 60)) 但这对我不起作用。

我是动态网页抓取的新手,提前致谢!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)