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
0
votes
2 answers

Trigger Authentication through IBM Watson Chatbot

I have a small chatbot, which reacts to the word: "test". On reading this word, he is supposed to call an IBM Cloud Function which in return tries to register the user returning a token. The Problem is, that the authentication API takes about 30s to…
0
votes
3 answers

Where to find IBM Cloud Function credentials to access it for Watson Assistant

I am searching for the credentials to access my cloud function from Watson assistant. Both are in Dallas region. I have looked at various docs and blogs, all looks obsolete. I could not find the credentials that could work in Watson Assistant.…
Irshad Ali
  • 1,153
  • 1
  • 13
  • 39
0
votes
1 answer

Can I trigger IBM/OpenWhisk functions with any trigger from any source?

In the documentation of IBM Cloud Functions, there is mentioned that the functions can be triggered with custom triggers: https://cloud.ibm.com/docs/openwhisk?topic=cloud-functions-feeds_custom This may be done via: - WebHooks - Polling -…
nymvno
  • 370
  • 5
  • 19
0
votes
1 answer

Error using CLI for cloud functions with IAM namespaces

I'm trying to create an IBM Cloud Function web action from some python code. This code has a dependency which isn't in the runtime, so I've followed the steps here to package the dependency with my code. I now need to create the action on the cloud…
71ML
  • 3
  • 2
0
votes
1 answer

Custom Logging of IBM cloud functions

We want to know how we can enable custom logging to IBM cloud functions, till now we used to see the logs in IBM Cloud Log Analysis Service which is enabled by default in IBM cloud and now its getting deprecated in mid July. We want to add…
user2319726
  • 143
  • 1
  • 1
  • 10
0
votes
0 answers

Could someone assist with the following IBM Watson Assistant error: Lite org is not allowed to provision non-lite plans

I have a chat bot which i created using the Watson Assistant interface. I would like to connect my chat bot to a database. I did some research and found that I can connect my bot to a database by using cloud functions (I am following the steps to…
0
votes
0 answers

Openwhisk Docker different behavior from IBM cloud CLI than its frontend

I want to run my Python program on IBM cloud functions, because of dependencies this needs to be done in an OpenWhisk Docker. I've changed my code so that it accepts a json: json_input = json.loads(sys.argv[1]) INSTANCE_NAME =…
Herman
  • 750
  • 1
  • 10
  • 23
0
votes
1 answer

How to run a docker image in IBM Cloud functions?

I have a simple Python program that I want to run in IBM Cloud functions. Alas it needs two libraries (O365 and PySnow) so I have to Dockerize it and it needs to be able to accept a Json feed from STDIN. I succeeded in doing this: FROM python:3 ADD…
Herman
  • 750
  • 1
  • 10
  • 23
0
votes
1 answer

How to fix ModuleNotFoundError when uploading virtualenv to IBM Cloud Functions?

I'm trying to upload a function to IBM Cloud Functions with a virtualenv that has opencv installed. However, when I try to run the action in IBM Cloud it says: { "error": "Traceback (most recent call last): File \"/action/1/src/exec__.py\", line…
0
votes
1 answer

IBM Cloud Functions: How to install "ibm_db" for serverless Db2 access in Node.js?

I got simple node.js code that works ok on my laptop. This testing nodejs application just selects a row from a Db2 database in IBM Cloud. However, when I integrated the code and deploy to IBM cloud, it complains "Error during initialization: {…
0
votes
1 answer

Read laz files are stored on IBM COS

I have a problem with reading laz files that are stored at IBM cloud object storage. I have built pywren-ibm library with all requirements that pdal one of them with docker and I then deployed it to IBM cloud function as an action, where the error…
Ammar
  • 26
  • 3
0
votes
2 answers

Watson assistant error "Http response code is [401]"

I created a very simple cloud function in IBM, that I try to call via Watson assistant. When I call it the error "Direct CloudFunctions call was not successful. Http response code is [401]" appears. Underneath is the code I am using. "prodname" is…
0
votes
1 answer

IBM Cloud Functions parameters are undefined

I'm using an IBM Cloud Functions web action but can not access the parameters. Parameters: Code: function main(params) { module = params.module; attribute = params.attribute; var options = { method: 'POST', uri: params.uri, …
jpsstack
  • 1,221
  • 4
  • 18
  • 29
0
votes
0 answers

Empty Cloud Functions params

I'm calling an IBM Cloud Functions web action function main(params) { params = JSON.stringify(params) return { message: 'params: ' + params }; } using this POST…
jpsstack
  • 1,221
  • 4
  • 18
  • 29
0
votes
1 answer

The action did not produce a valid response and exited unexpectedly

I want to call a Node-RED flow from IBM Cloud Functions. const https = require('https'); function main(params) { const path = "/" + params.route + "?" + params.query_params ; const options = { hostname: params.hostname, path: path, …
jpsstack
  • 1,221
  • 4
  • 18
  • 29