Questions tagged [ibm-cloud-functions]

IBM Cloud Functions (based on Apache OpenWhisk) is a Function-as-a-Service (FaaS) platform which executes functions in response to incoming events. Use when having doubts regarding the use of the service.

IBM Cloud Functions (based on Apache OpenWhisk) is a Function-as-a-Service (FaaS) platform which executes functions in response to incoming events and costs nothing when not in use. It is one of the examples of servless architecture currently on market.

180 questions
1
vote
2 answers

python scheduler on bluemix

I am using the schedule package in python, to invoke a function for every 15 seconds, and want to run this code on IBM Bluemix. Have pushed the application using the -no-route option to Bluemix, though the application is deployed to Bluemix, Bluemix…
aryanRaj_kary
  • 503
  • 2
  • 7
  • 28
1
vote
1 answer

Return binary HTTP response from OpenWhisk (IBM Cloud Function) action

I want to return a binary file which resides in (IBM Cloud) ObjectStorage via HTTP using OpenWhisk in a IBM Cloud Function. Is this possible? To me it seems OpenWhisk only supports JSON as result to an action. This is the code I'm using…
1
vote
1 answer

OpenWhisk returns whole response object instead of just the data

I have an OpenWhisk action that returns a response object, because I want to be able to control the headers and HTTP status code. My action returns something like this: return { statusCode: 200, headers: { 'Content-Type': 'application/json'…
Glynn Bird
  • 5,507
  • 2
  • 12
  • 21
1
vote
2 answers

How do you use/reference libraries in IBM Bluemix OpenWhisk?

As of today, in the IBM Bluemix docs for the IBM Bluemix OpenWhisk service I could not find any clues as to how to use libraries. How am I missing the obvious that all apps invariably require a library and therefore why isn't that at least mentioned…
Rick
  • 572
  • 1
  • 7
  • 21
1
vote
1 answer

How do I interrupt a sequence flow in OpenWhisk?

I'm writing a trigger on a Cloudant database that should convert each new document into a Slack notification. I've created a sequence of two actions: one to prepare the Slack message, one to send it. To send the Slack message I'm using the package…
Frederic Lavigne
  • 704
  • 3
  • 12
1
vote
3 answers

Using curl with OpenWhisk

I am trying to use IBM OpenWhisk. It has its own CLI, but I wanted to invoke a simple "echo" sample using curl. curl -d-data '{"message": "hellow world"}'…
0
votes
0 answers

IBM cloud Pak for business automation workflow

In IBM cloud Pak for Business automation workflow I have created a process, now I need to start the process or extract the process data using postman or REST. But the IBM is not allowing me to fetch the data, there is a authorization error. I was…
0
votes
2 answers

IBM Cloud Functions + Cloudant (using Python)

I've an IBM Cloud Functions action called review. 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 function is…
0
votes
1 answer

IBM Cloud Functions + Cloudant

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: Then I…
0
votes
0 answers

How do I call the REST API for an Action using IBM Cloud's Function in Postman?

I have created an Action using IBM Cloud's Function service to query against a Cloudant database. I am able to verify that the code is working when I invoke it. I would like to also verify it using Postman. See image below for endpoint…
mauvecrow
  • 35
  • 5
0
votes
2 answers

Getting no results from an IBM Cloud Function that uses IBM Cloudant

My cloud function is meant to return all documents in the dealerships database, but I am getting {}. In the activation log its showing that all records have been sent successfully. The problem occurs at dealers = json_result["entries"] because…
javafan12
  • 3
  • 1
  • 2
0
votes
0 answers

How to connect IBM Watson Assistant to a MySQL Database?

So I have created a basic Watson Assistant Chatbot and a basic MySQL Database and I want to connect them together, for the Watson Assistant to extract something from it. Here's the scenario as follows: The Watson Assistant will ask the user to…
0
votes
0 answers

How to parse a python ibm cloud action function as JS?

I was trying to invoke a json parsed python function on IBM cloudant action function. It give me error message saying that I cant import cloudant. Following is the action function in python that I have created on cloudant: """IBM Cloud Function that…
0
votes
0 answers

How to return compressed response in IBM Cloud Functions?

I have an HTTP enabled function, Node.js, that returns a big JSON (about 1.2 MB). Is there any way to compress that before sending to browser? I'm aware of Node module zlib, but I'm wondering if there is a predefined way to do that in actions. I…
pierpy
  • 897
  • 3
  • 14
  • 18
0
votes
1 answer

Are there common "environment" variables in IBM Cloud functions (actions)?

I am writing a number of actions (IBM Cloud functions,) which share a couple of the same parameters, e.g. the IAMAuthenticator or the database path. Is there a way to set these as some kind of environmental variables common to several functions?
Pavlo Maistrenko
  • 187
  • 2
  • 12