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

IBM Cloud functions - Unable to create an organisation

I'm unable to create an IBM Cloud Organisation. Reason is I am not authorised to create but question here is I have no idea which team or where I have to connect to get the permission to fix this one. **command** : ibmcloud cf create-org…
0
votes
2 answers

Can I use ES modules in IBM Cloud Functions (node.js) or is only Common JS supported?

When I create a Node.js v16 function action from a zip file containing a simple estest.js: function main(params) { return { message: 'Hello World' }; } and package.json containing "type": "module" I get: { "error": "Initialization has failed…
0
votes
1 answer

how can I add software pre-requisites to cloud foundry nodejs

I am using Cloud Foundry's nodejs profile and my nodejs package.json requires chartjs-node-canvas. That package uses node-canvas and node-canvas is based on Cairo. The node-canvas site says I have to add the cairo-devel package to Linux (apt-get)…
Joe Herman
  • 21
  • 4
0
votes
1 answer

How to get remote IP from IBM Cloud functions

I am writing a serverless function on IBM Cloud; my code needs to take actions based on remote IP, filtering requests by country. How can I obtain connection details, such Express req.ip or Node request.connection.remoteAddress?
pierpy
  • 897
  • 3
  • 14
  • 18
0
votes
1 answer

Debugging IBM Cloud Function

I started looking at IBM Cloud Functions (NodeJS runtime) and I was wondering if anyone had been able to debug a function on his local machine. Suppose to have a simple NodeJs function which returns a json. const md5 =…
Alessandro R
  • 525
  • 7
  • 16
0
votes
1 answer

IBM Cloud Functions and Node.js: How to get Japan time?

I am writing a Node.js action in IBM Cloud Functions. How to get Japan time? I tried the following code at 6:28 AM Japan time but I got 9:28 PM. Code: console.log(new Date().toLocaleString({ timeZone: 'Asia/Tokyo'…
mira
  • 265
  • 2
  • 11
0
votes
0 answers

Deploying Ibm Cloud Functions with multiple actions at once using manifest.yml having thirdparty dependecies

I am having a set of three APIs with different paths using a third party npm dependency which I am trying to deploy on IBM Cloud functions using the openwhisk manifest.yml file declaring the actions and apis. However, the third party npm modules…
Akash Gorai
  • 580
  • 1
  • 8
  • 17
0
votes
0 answers

Deploying docker image as IBM Cloud Action with credentials

I have a small NodeJS app I want to deploy to IBM Cloud as an "action". What I've been doing until now is just zipping the project files and creating/updating actions using the IBM Cloud CLI like this: ibmcloud fn action create project-name…
KarlB25
  • 83
  • 6
0
votes
1 answer

IBM Cloud Functions Service can't retrieve a list of databases on trying to create a new binding to a Cloudant action

I'm trying to create a sequence for documents uploading. I created the Cloudant instance, database in it and IAM and legacy credentials. Suddenly, I receive an error retrieving a list of databases when I try to bind a Cloudant action to a Cloudant…
0
votes
2 answers

IBM Cloud Functions: Use async calls in Nodejs

I run this code on Cloud.ibm.com in an Action accessing a Cloudant Database: async function main(params) { const cloudant = Cloudant({ url: params.COUCH_URL, plugins: { iamauth: { iamApiKey: params.IAM_API_KEY } } }); …
0
votes
1 answer

Calling OpenWeather API from Watson Assistant: "Direct CloudFunctions call was not successful"

I am trying to use the openweathermap API with Watson Assistant, but I am getting "Webhook call was not successful. Response code is [404]. (and there is 1 more error in the log)." (I am working from the book by Sabharwal, et al., with my own…
AltShift
  • 336
  • 3
  • 18
0
votes
0 answers

Can I directly download files from Box to IBM Cloud Object Storage?

What I want to achieve is to download files from Box directly to my COS bucket without downloading it to my local computer. I want to run this code in IBM Cloud Functions so I need to establish this direct download somehow. def main(args): …
Looz
  • 377
  • 2
  • 14
0
votes
1 answer

IBM Cloud Functions: How to create secured web action using Terraform

I am able to create a new IBM Cloud Functions action using the Terraform provider. resource "ibm_function_action" "sendEmail" { name = "${ibm_function_package.cloudmailer.name}/sendEmail" namespace = ibm_function_namespace.namespace.name …
0
votes
1 answer

How to pause an OpenWhisk trigger

Following the documentation at https://github.com/apache/openwhisk/blob/master/docs/feeds.md I have implemented a feed, and am capturing trigger livecycleEvent events. From the command line and from the console in IBM Cloud I am able to test the…
chughts
  • 4,210
  • 2
  • 14
  • 27
0
votes
1 answer

IBM Cloud Functions - "Invalid virtualenv. Zip file does not include activate_this.py"

I want to deploy a python script with a virtual environment (I need a library which is not in the runtime provided by IBM Cloud Functions) to IBM Cloud Functions. I want to do this with simple zipping so I followed the documentation: Packaging…
Looz
  • 377
  • 2
  • 14