-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined error in RCurl call. Error in queryRD(paste0(serverURL, "/session"), "POST", qdata = toJSON(serverOpts)) : #54
Comments
++
|
> require(RSelenium)
> RSelenium::startServer()
> remDr$open()
[1] "Connecting to remote server"
Undefined error in RCurl call.
Error in queryRD(paste0(serverURL, "/session"), "POST", qdata = toJSON(serverOpts)) :
> remDr$getStatus()
Undefined error in RCurl call.
Error in queryRD(paste0(serverURL, "/status")) : Worse than you, my friend... |
Having the same problem here! I've searched high and low for an answer but nothing yet unfortunately. library(RSelenium)
checkForServer()
remDr <- remoteDriver()
remDr$getStatus()
startServer()
remDr$open()
[1] "Connecting to remote server"
Undefined error in RCurl call.
Error in queryRD(paste0(serverURL, "/session"), "POST", qdata = toJSON(serverOpts)) : |
Update: after downloading the selenium standalone server, putting it in a folder (my R workspace folder), and clicking on it manually, it seemed to work: > remDr$open()
[1] "Connecting to remote server"
$applicationCacheEnabled
[1] TRUE
$rotatable
[1] FALSE
$handlesAlerts
[1] TRUE
$databaseEnabled
[1] TRUE
$version
[1] "39.0.3"
$platform
[1] "MAC"
$nativeEvents
[1] FALSE
$acceptSslCerts
[1] TRUE
$webdriver.remote.sessionid
[1] "85cf80e6-f7bb-4c0f-a932-f033f2870465"
$webStorageEnabled
[1] TRUE
$locationContextEnabled
[1] TRUE
$browserName
[1] "firefox"
$takesScreenshot
[1] TRUE
$javascriptEnabled
[1] TRUE
$cssSelectorsEnabled
[1] TRUE
$id
[1] "85cf80e6-f7bb-4c0f-a932-f033f2870465"
> remDr$getStatus()
$build
$build$version
[1] "2.47.1"
$build$revision
[1] "411b314"
$build$time
[1] "2015-07-30 03:03:16"
$os
$os$name
[1] "Mac OS X"
$os$arch
[1] "x86_64"
$os$version
[1] "10.10.3"
$java
$java$version
[1] "1.8.0_51" |
I am having the same problem and trying the solution you posted. But how can I find where I download the selenium standalone server? |
Hi lli48, if you search your computer for "selenium-server-standalone.jar" you should find it. I manually clicked on this, and then had no more problems with the browser. |
RoberyMyles is right. It will throw an error depending on your security settings. You must approve the .jar to run from an unknown author (depending on your security settings). |
@RobertMyles, any idea to install selenium? |
Ok I was able to solve this for Mac OS 10.10.5:
install.packages("RSelenium") Then you should have the .jar already somewhere in your Hard Drive, but property of root user, so in order to find it I had to issue some commands in Terminal:
Now find the .jar file with finder, right click on it and open it using with Jar Launcher app That should solve it |
Hi guys, For me the problem was that startServer() function does not work. Internally it starts the selenium-server-standalone.jar (in file.path(find.package("RSelenium"), "bin") folder) as follows: java -jar /PATH/TO/selenium-server-standalone.jar but for me this failed due to an outdated java version (1.6). Updating to the latest 1.7 version solved things. You could test on the command line whether the line above works; if you get an error message this is likely the reason for your error message. Cheers, Thomas |
+1 @thomasKuilman. java -jar /Library/Frameworks/R.framework/Versions/3.2/Resources/library/RSelenium/bin/selenium-server-standalone.jar and returns no message, but when I try the above from the command line I get |
@olivmx I tried to grant permission by > checkForServer(update = TRUE)
[1] "DOWNLOADING STANDALONE SELENIUM SERVER. THIS MAY TAKE SEVERAL MINUTES"
--2016-01-21 09:53:21-- http://selenium-release.storage.googleapis.com/2.49/selenium-server-standalone-2.49.0.jar
Resolving selenium-release.storage.googleapis.com (selenium-release.storage.googleapis.com)... 2a00:1450:400c:c01::80, 74.125.195.128
Connecting to selenium-release.storage.googleapis.com (selenium-release.storage.googleapis.com)|2a00:1450:400c:c01::80|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 30947958 (30M) [application/java-archive]
Saving to: ‘/usr/lib64/R/library/RSelenium/bin/selenium-server-standalone.jar’
0K .......... .......... .......... .......... .......... 0% 3.48M 8s
50K .......... .......... .......... .......... .......... 0% 5.94M 7s
100K .......... .......... .......... .......... .......... 0% 7.69M 6s
...
30100K .......... .......... .......... .......... .......... 99% 235M 0s
30150K .......... .......... .......... .......... .......... 99% 223M 0s
30200K .......... .......... .. 100% 199M=0.6s
- utime(/usr/lib64/R/library/RSelenium/bin/selenium-server-standalone.jar): Operation not permitted
2016-01-21 09:53:22 (52.3 MB/s) - ‘/usr/lib64/R/library/RSelenium/bin/selenium-server-standalone.jar’ saved [30947958/30947958]
> startServer()
> remDrv <- remoteDriver()
> remDrv$open()
[1] "Connecting to remote server"
- Undefined error in RCurl call.
- Error in queryRD(paste0(serverURL, "/session"), "POST", qdata = toJSON(serverOpts)) : and noticed there is an error
|
For the sake of completeness to those who know what's going on with this error.
When I run it for the first time, I get same error as most people here:
But if I re-run the function (without any other change), then it runs smoothly.
|
Hi.. I have the same issue... I searched for the the selenium-standalone-server and tried to double click on it when I get the error as "could not find the main class:" in the Java virtual machine launcher dialog box. |
Hi..I am getting same error. startServer()
Could someone please help on this issue. I tried options given in above comments but that's not working. |
I'm getting the same issue too I have two Windows 7 laptops that are very similar, same version of R. On one it works fine, on the other I get this error:
|
Any solution to the
|
See the Selenium changelog: So at least Java 7 is required for v >= 2.47 and now Java 8 is required for v >=3 |
I have java 8 and still got the error |
There is an issue with firefox 47 and selenium 2.53.1. Firefox released 47.0.1 to fix this |
My solution worked on my Mac: I followed all instructions listed here about opening the .jar file first, which did not work by themselves (although they may be necessary for what did work). What ended up working for me was downloading an older version of FireFox (I used version 28.0), then I turned off Firefox auto-update, and then everything started working. I also ran: Note that there are safety concerns about downloading an older version of a browser so I only use this Firefox while using RSelenium. |
Happy that worked for you. The java call is:
in this instance
The Selenium Server in theory should work as follows:
|
Error in queryRD(paste0(serverURL, "/session"), "POST", qdata = toJSON(serverOpts)) : I solved this problem. Undergrading Mozillafirefox to version 46.0.1 . It worked for me. |
Loaded RCurl and RSelenium but unable open any browser, may I know any solution?
https://cran.r-project.org/web/packages/RSelenium/vignettes/RSelenium-headless.html
The text was updated successfully, but these errors were encountered: