You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

RSelenium连接报错求助:SSL/TLS握手失败问题排查

RSelenium连接报错及SSL/TLS握手失败问题

初始执行报错

执行以下R代码:

library(RSelenium)
rs_driver <- rsDriver()

得到报错输出:

checking Selenium Server versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
checking chromedriver versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
checking geckodriver versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
checking phantomjs versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
Error in if (file.access(phantompath, 1) < 0) { : 
  argument is of length zero

尝试修复后的新错误

参考相关帖子,执行以下两行代码:

binman::rm_platform("phantomjs")
wdman::selenium(retcommand = TRUE)

执行后的输出及新报错:

> library(RSelenium)
> binman::rm_platform("phantomjs")
Removing platform: windows
> wdman::selenium(retcommand = TRUE)
checking Selenium Server versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
checking chromedriver versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
checking geckodriver versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
checking phantomjs versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
Creating directory: C:\Users\MEGANM~1\AppData\Local/binman/binman_phantomjs/windows/2.5.0
Downloading binary: https://api.bitbucket.org/2.0/repositories/ariya/phantomjs/downloads/phantomjs-2.5.0-beta2-windows.zip

Error in curl::curl_fetch_disk(url, x$path, handle = handle) : 
  schannel: failed to receive handshake, SSL/TLS connection failed

当前无法解决的核心错误

Error in curl::curl_fetch_disk(url, x$path, handle = handle) :
schannel: failed to receive handshake, SSL/TLS connection failed

环境信息

  • 操作系统:Windows
  • R版本信息:
platform       x86_64-w64-mingw32
arch           x86_64
os             mingw32
crt            ucrt
system         x86_64, mingw32
status
major          4
minor          3.1
year           2023
month          06
day            16
svn rev        84548
language       R
version.string R version 4.3.1 (2023-06-16 ucrt)
nickname       Beagle Scouts

内容的提问来源于stack exchange,提问作者megmac

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.15 08:52:56