IBM Cloud Functions + Cloudant

103 Views Asked by At

I've an IBM Cloud Functions action called dealership. This action takes some information from a Cloudant database. If I run this action on IBM Cloud Functions web interface, I get the desired results, see picure below, then the action is OK:

IBM CF WEB Results

Then I make this action availble from web

enable http request

And then, if I call this action from web browser, postman, webapp, anything I got status 204 (no content). Why?

1

There are 1 best solutions below

13
data_henrik On BEST ANSWER

My guess is that you called the base URL, not the URL with the JSON extension. Because web action can return different results, you need to add the Functions content extension to the base URL.

https://<apihost>/api/v1/web/<namespace_ID>/<packageName>/<actionName>.<ext>