Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

CURL to a https URL in cdsw fails

CURL to a https URL in cdsw fails

Expert Contributor

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

 

1 REPLY 1

Re: CURL to a https URL in cdsw fails

Rising Star

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
Don't have an account?
Coming from Hortonworks? Activate your account here