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

Federated IBMid SSO bypass one time

I am attempting to programmatically create federated user account and setup that user account using automation. The reason for this is because we would want to create customized user environments (by logging in the user). By Default when a domain is…
l33tcodes
  • 21
  • 3
0
votes
1 answer

not able to run the code due to module ibm-watson/auth is cant fund

The below code snippet is from the watson tone analyzer documentation. The issue : when I paste the code and run the code it runs perfectly fine. However, when I paste it in another cloud function, it is stating that module of ibm-watson/auth cant…
0
votes
1 answer

IBM Cloud Functions: Can't find 'ibm-watson/auth' package

I'm using IBM Cloud functions for requesting some results from IBM Watson Discovery. There is a very good GitHub repo here about how can we invoke this. However, on the way of setting the action in the function an error with message Cannot find…
CodiClone
  • 141
  • 1
  • 2
  • 8
0
votes
0 answers

Watson Assistant Webhook returns always null

I'm testing the Assistant feature of using Webhooks and by some reason I don't receive any output. My Cloud-Function code looks so: async function main(params) { switch (params.action){ case 'bills': var resp_final = [ …
0
votes
1 answer

IBM Cloud Functions - Set a global variable

I'm looking at the documentation, but I find nowhere an information for setting a global variable. We know that the Cloud functions are stateless code snippets, but I want somehow to integrate a global variable which can be changed by an action,…
CodiClone
  • 141
  • 1
  • 2
  • 8
0
votes
2 answers

IBM Cloud Functions: How to run a Docker function?

FROM python:3.7 COPY ./src /data/python WORKDIR /data/python RUN pip install --no-cache-dir flask EXPOSE 8080 CMD ["python", "main.py"] main.py import os from flask import Flask app = Flask(__name__) @app.route('/') def index(): return…
caoyufei
  • 671
  • 1
  • 6
  • 10
0
votes
1 answer

IBM Cloud Functions - Securing API keys & Passwords inside Functions / node.js

I got some Node.js code in an IBM Cloud Function. I have enabled it as a web action and the function is called via webhook from Watson Assistant. Is it safe to have my API keys and other passwords inside the IBM Cloud Function as readable text? Or…
Warkus
  • 64
  • 8
0
votes
1 answer

IBM Cloud Functions printing API response in Watson Assistant / node.js / json

With IBM cloud functions I am calling two Joke APIs. The first one gives me these results: Results: { "response": { "body": { "body": [ { "_id": "5f80ccd641785ba7c7d27bc0", "punchline": "They always…
0
votes
1 answer

IBM Cloud Functions Calling API with authentication / node.js

For most of you reading this, it is portably the most basic question and done within 2 minutes.. Maybe someone got the time to provide the code for me or can recommend a resource where this is being explained for an absolute beginner. I want to call…
0
votes
1 answer

How are token claims accessed in an action invoked by an API call

Scenario: user logs in using App ID via my app (android). The app makes an API gateway call that invokes a function. The function needs the identity of the user (i.e. the claims of the identity token). The function is IAM enabled and the API is…
Robert
  • 1
  • 1
0
votes
1 answer

How to use third party binaries in IBM cloud functions

I want to use the binaries bwa and samtools in IBM cloud functions. I've tried to include both in the .zip as explained here but both executables are missing some shared libraries. What would be a general approach to fix those sorts of problems? Do…
jonathan-dev
  • 330
  • 1
  • 3
  • 16
0
votes
1 answer

An issue with reading a gzipped file (.gz) with IBM Cloud Function (Action: Node.js 12)

I can read the data.json.gz file on my local machine with the code mentioned below (node --version: v14.15.0). But when I try to use the same in IBM Cloud with an Action (Node.js 12) to read the same file from an Object Store Bucket, I get the below…
0
votes
1 answer

idle_container configuration in openwhisk

Currently, the Invoker component configuration in the application.conf has the following configuration for container proxy : container-proxy { timeouts { # The "unusedTimeout" in the ContainerProxy, #aka 'How long should a…
0
votes
1 answer

know if the Openwhisk action is executed on a prewarm container by receiving the log from API

I install openwhisk via kubernetes cluster. I invoke my actions through the API and also receive their logs via API. But in the log, it is only known whether the action is cold or warm, through initTime annotation. And it is not clear whether the…
0
votes
1 answer

Run Puppeteer in IBM Cloud Functions

I deployed Typescript code to run Puppeteer in IBM Cloud Functions. It seems to be hanging when executing this code await page.goto(path, {timeout: 0}) Without {timeout: 0}, it will throw "TimeoutError: Navigation timeout of 30000 ms exceeded" I…