BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
kelekar
Calcite | Level 5

I am trying to connect to the CAS server using the SWAT R. I have downloaded 64 bit R and all the required pre-requisites as described in https://github.com/sassoftware/R-swat

 

When I try to run the command to connect

conn <- swat::CAS('host', 8887, 'http',username='abcd',password='abcd')

 

I get the following error

 

Error in curl::curl_fetch_memory(url, handle = handle) :
Empty reply from server.

 

On the server I see the CAS admin listening on 8887 but only on the IPV6.

 

Thanks in advance.

Atul

1 ACCEPTED SOLUTION

Accepted Solutions
gwootton
SAS Super FREQ
Looks like SWAT needs to be told this is a secure connection, i.e. set the protocol as HTTPS instead of HTTP.

Connect and Start a Session
https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/caspg3r/p0paczu3x2qu0wn1p94ees7y5ls8.htm
--
Greg Wootton | Principal Systems Technical Support Engineer

View solution in original post

3 REPLIES 3
kelekar
Calcite | Level 5
In the CAS logs I see the following ERROR
ERROR [00000018] MAIN NoUser MAIN [skstssl.c:1291] - Secure communications error status 807ff03c description "::ffff:NN.NN.NNN.NN: The data received is not a valid SSL/TLS packet."
gwootton
SAS Super FREQ
Looks like SWAT needs to be told this is a secure connection, i.e. set the protocol as HTTPS instead of HTTP.

Connect and Start a Session
https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/caspg3r/p0paczu3x2qu0wn1p94ees7y5ls8.htm
--
Greg Wootton | Principal Systems Technical Support Engineer
kelekar
Calcite | Level 5
Thanks a lot. Changing it to https worked.

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 1255 views
  • 0 likes
  • 2 in conversation