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
1 answer

Securing NodeRED dashboard from unwanted access

I'm trying to create some kind of user authentication to prevent unwanted access to my NodeRED's User Interface. I've searched online and found 2 solutions, that for some reason didn't worked out. Here they are: Tried to add the…
0
votes
1 answer

How to make watson assistant search for multiple watson discovery collections?

I am Using IBM cloud functions to link assistant and discovery. However, there is only 1 webhook url slot available, which means I can only use 1 function, which in turn can only have 1 collection Id. I need a way through with assistant can look…
0
votes
0 answers

Install opencv in IBM Cloud Functions

I want to install opencv library on IBM Cloud Functions to be able import cv2 into a Python action. I tried to follow this guide: https://cloud.ibm.com/docs/openwhisk?topic=openwhisk-prep#prep_python_local_virtenv I've done the following…
Jim
  • 1
  • 5
0
votes
1 answer

how to connect IBM cloudant database to python app code already on IBM cloud(cloud foundary)?

I am using Django to create python based web application, and deployed it on IBM Cloud Foundry service, now I want to connect it with IBM cloudant to store all recorded query in cloudant databse using python.
0
votes
1 answer

401 error accessing Cloudant from IBM Cloud Function

I have created a Cloudant service and credentials (1) along with a database and a couple of documents. I want to access that database from an IBM Cloud Function so created a function to do that. I tested the function by adding the copied and pasted…
TimBrighton
  • 219
  • 3
  • 13
0
votes
0 answers

Deployed IBM cloud function (nodejs) using manifest yaml with dependencies execution fails

I've deployed nodejs based IBM cloud function using manifest file. I'll have few other functions which may share some common codes. Here is the folder structure manifest.yml actions/ - myFunction1/ -- index.js -- package.json - myFunction2/ …
Musa
  • 3,944
  • 4
  • 21
  • 27
0
votes
2 answers

How do I run code that accesses an Apache OpenWhisk action's in-memory state after the action completes?

I was testing out using IBM Cloud Functions (managed Apache OpenWhisk) to run code in the background after the action finishes, but my callback provided when calling setTimeout didn't run at the right time later, and it never ran at all unless I…
Matt Welke
  • 1,441
  • 1
  • 15
  • 40
0
votes
1 answer

Openwhisk invoke action error: "error": "The action did not return a dictionary."

I have a python function that uses the Tensorflow library to image recognition. And I deployed it on IBM Cloud Functions(Openwhisk) through Dockerfile and invoke it from wsk CLI. But when I invoke the function, the following error is…
0
votes
1 answer

Using BOX SDK from IBM Cloud Functions

I am trying to integrate my Watson Assistant to BOX. I tried to use boxsdk in my Cloud Function Action. But it gives me exception - No module named 'boxsdk' Has anyone tried integrating BOX with Watson Assistant or tried using the API's in cloud…
Techidiot
  • 1,921
  • 1
  • 15
  • 28
0
votes
0 answers

How to setup multiple webhooks in Watson Assistant

I tried I have multiple actions in IBM cloud functions. I need Watson Assistant to call different ones when certain nodes hit. My question is, there's only the possibility to put one webhook in Watson assistant's options. I understand that I'd have…
0
votes
0 answers

How to add IBM API authentication to my code?

Watson Assistant only supports one Webhook url. The issue is I have multiple nodes in Assistant that need to call different "Actions" I have hosted in IBM Cloud Functions. How can I do that? I tried to code and "Action" that uses the NPM Axios to…
0
votes
1 answer

How can one reuse a database connection in Golang Cloud functions?

I am currently trying to migrate my application to IBM cloud functions, but one issue that I am facing is keeping the Postgresql DB from beeing reconnected every time an action is invoked. I have found very little information about how to reuse a DB…
0
votes
1 answer

Pass current URL parameters to Cloud Function Python API on IBM Cloud

I'm new and trying to create a Cloud Function on IBM Cloud. My API is working fine on "hello world" only. I need to pass the parameters from URL to manipulate it into my Python API. Like: URL:…
mg g
  • 21
  • 4
0
votes
1 answer

Virtualenv using the wrong Python version

I'm following the instructions on https://cloud.ibm.com/docs/openwhisk?topic=cloud-functions-prep#prep_python_local_virtenv on macOS 10.15.4 The creation of the virtualenv results in a different outcome than expected: % virtualenv…
jpsstack
  • 1,221
  • 4
  • 18
  • 29
0
votes
1 answer

IBM Cloud Functions: how to require "node-geocoder" in NodeJS

I´m trying to write an action in IBM Cloud Function that can take an address and change it to coordinate. The example in the picture is exactly wroten the same way as in…