Reply
Highlighted
Expert Contributor
Posts: 82
Registered: ‎05-09-2017

CURL to a https URL in cdsw fails

This is from the terminal. 

 

WORKS:

 

cdsw@5vkwip5ng32jcomk:~$ curl -H "Content-Type: application/json" -X POST http://i
rd34au.vsp.sas.com/api/altus-ds-1/models/call-model -d '{"accessKey":"XXXXXXXXXXXX","request":{"petal_length":5.4}}'
{
"success": true,
"response": 1.8823523252176988
}

 

FAILS:

 

cdsw@5vkwip5ng32jcomk:~$ curl -H "Content-Type: application/json" -X POST https://
ird34au.vsp.sas.com/api/altus-ds-1/models/call-model -d '{"accessKey":"XXXXXXXXXXXXXXX","request":{"petal_length":5.4}}'
curl: (7) Failed to connect to ird34au.vsp.sas.com port 443: Connection timed out

 

Posts: 57
Topics: 0
Kudos: 8
Solutions: 5
Registered: ‎05-15-2018

Re: CURL to a https URL in cdsw fails

Hello @desind

 

From the Message, it looks the SSL enabled URL is giving connection timeout.

 

Could you try running the curl with -vvv option and see what are the request responses ?

Thanks,
Satz