Search code examples
curlibm-clouddashdb

dashDB API call fails


I have created and interacted with a dashDB instance in IBM Bluemix through the web application but when I try the following curl command, from the dashDB API documentation :

curl --user "[userid]:[password]" -X GET "https://[hostname]:[port]/dashdb-api/home"

I get this error:

curl: (35) Unknown SSL protocol error in connection to <hostname>:50000

In this context, what does this error mean?


Solution

  • Turns out I have been using the wrong port in the hostname, the dashDB port is listed to be 5000 but because this call is https the port should be 8443.