Rlabkey HTTPS connections

LabKey Support Forum (Inactive)
Rlabkey HTTPS connections hilariagrieve  2016-11-02 04:55
Status: Closed
 
Hi!
I am configuring RLabkey and in the diagnostic process I had some Troubleshooting Rlabkey Connections,
When I tried to access to a http direction, it works fine.
But, when I tried to acces to a https direction, I doesn't work.

when I Run the following in an R view:
------------------------------------------------------
library(Rlabkey)

   labkey.setCurlOptions(ssl.verifypeer=FALSE, ssl.verifyhost=FALSE)
   cat("\n\nAttempt a connection to Google. If it works, print first 200 characters of website. \n")
    x = getURLContent("https://www.google.com")
    substring(x,0,200)
------------------------------------------------------

I have this in the report tab:
------------------------------------------------------

Error executing command
javax.script.ScriptException: javax.script.ScriptException: An error occurred when running the script 'script.R', exit code: 1).
Loading required package: RCurl
Loading required package: bitops
Loading required package: rjson
$cainfo
[1] "C:\\Users\\SSTJ04; C:\\labkey"

$useragent
[1] "Rlabkey"

$sslversion
[1] 1

$followlocation
[1] TRUE

$ssl.verifyhost
[1] FALSE

$ssl.verifypeer
[1] FALSE

attr(,"class")
[1] "CURLOptions"


Attempt a connection to Google. If it works, print first 200 characters of website.
Error in function (type, msg, asError = TRUE) :
  Failed to connect to 10.101.2.22 port 443: Timed out
Calls: getURLContent -> curlPerform -> .Call -> <Anonymous> -> fun
Ejecuci?n interrumpida


-------------------------------------------------------

My _netrc file, I think is configurated ok, but I don't know....

machine local host
login hilariagrieve@hotmail.com
password xxxxx

machine 10.101.136.102
login hilariagrieve@hotmail.com
password xxxxx


Is that ok? What could be the problem?

Thanks
 
 
Jon (LabKey DevOps) responded:  2016-11-07 13:51
Hi Hilaria,

The line for "machine" should be the LabKey server's address.

If you were to type in: https://10.101.136.102:443 into your browser's address bar, does it actually connect? What about http://10.101.136.102? Does that connect?

Regards,

Jon