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

Access Sharepoint document from Node.js in IBM Cloud Function

I'm trying to access some table data in a Sharepoint file hosted on botshop.cloudappsportal.com from an IBM Cloud Function written in Node.js. I can access the REST API for Sharepoint on the site, but the authentication fails. My understanding, is…
James
  • 17,965
  • 11
  • 91
  • 146
4
votes
2 answers

IBM Cloud Functions WebAction gives empty response (204)

I am running into strange behavior with IBM Cloud Functions. I have an Action that is web enabled (WebAction) for which I don't require authentication. I use Postman (and a browser) to test this new REST endpoint.(left side of the image below) The…
mpjjonker
  • 917
  • 1
  • 6
  • 28
3
votes
1 answer

IBM Cloud Functions - Storing sensitive data (environment variables) with Docker based actions

I am looking for a recommendation how to do this. From the docs: https://cloud.ibm.com/docs/openwhisk?topic=cloud-functions-creating-docker-actions#creating-and-invoking-a-docker-action You can use actions to call images from public registries…
vlatkorun
  • 127
  • 1
  • 15
3
votes
2 answers

Cloud Functions REST API: Creating a new action from a zip file

I'm trying to create a nodejs function from a zip file and through the REST API using the following curl: curl --request PUT --url…
user3024710
  • 515
  • 1
  • 6
  • 15
3
votes
1 answer

Is there a way to access OpenWhisk logs from the API?

I want to programatically dump logs from OpenWhisk in to an external service. I can do this by capturing log output and then posting it at the end of every action but this adds overhead to my function. Is there a way to get this data from the…
Ed Shee
  • 931
  • 1
  • 7
  • 22
2
votes
1 answer

Integrating Webpack with Auth0 or how to add additional Node.js modules to IBM Cloud Functions

I'm trying to set up my nodejs backend functions to use Auth0 for IAM services. I can successfully deploy functions to my IBM Cloud account that don't uses auth0 library, but if I try to upload a function that uses auth0 library I receive the…
Riccardo
  • 1,083
  • 2
  • 15
  • 25
2
votes
1 answer

Webhook call failed; response code 401 Unauthorized

I am calling an IBM cloud function (https://eu-gb.functions.cloud.ibm.com/api/v1/web/akash_IBM_dev/default/Demo) from IBM Watson assistant chatbot webhook and getting error - "Webhook call failed; response code 401 Unauthorized. Add the…
akash
  • 51
  • 1
  • 4
2
votes
1 answer

Can we call other Watson services(like assistant, discovery etc.,) from 'ibm cloud functions' using python( ibm_watson sdk)?

I am trying to call watson discovery service in 'ibm cloud function' where only older version python package('watson_developer_cloud') was installed. I am getting the below error when list_environments() method of discovery is called: import…
2
votes
1 answer

How to fix "error": "'parameter_name'" when using IBM Cloud Function's REST API?

I have an action in IBM Cloud Functions that only receives one parameter: "frame". I'm using Postman to test the REST API endpoint provided with the action. However, when I provide the "frame" parameter it returns the following: "response": { …
2
votes
1 answer

Handle multiple answers from IBM Cloud Function in Watson Assistant

I need to show an unknown number of buttons in a Watson Assistant dialogue node. The data for the buttons comes from a IBM Cloud Function. If I manually set up a response type "option" answer in my node the JSON-object looks like this: { "output":…
2
votes
1 answer

Blocking action invocation time-outs after 60s - how to access result?

I'm trying to invoke an Apache OpenWhisk action (using the JavaScript SDK) as a remote function. I want to wait for the function result to be available to use in my application. This is normally handled by using a blocking invocation, e.g.…
James Thomas
  • 4,303
  • 1
  • 20
  • 26
2
votes
2 answers

IBM Cloud Function produce no output

I have some troubles while running this IBM Cloud Function: /** * * main() will be run when you invoke this action * * @param Cloud Functions actions accept a single parameter, which must be a JSON object. * * @return The output of…
2
votes
1 answer

How to connect an action on IBM Cloud Functions with a database?

I have a conversation in watson assistant and i want be able to call an action from IBM cloud function to make some query on my database (Azure). I'm not familiar with cloud function so this may be a dumb question, i don't understand how to make a…
2
votes
2 answers

How to do PUT request in Python for loop

I'm trying to crawl a website to get the info about vehicles. I want to get all vehicles from that site. I want to repeat the process every day because every day there are new vehicles. There are a lot of cars, more than 100 thousand. Thus doing it…
Boky
  • 11,554
  • 28
  • 93
  • 163
2
votes
1 answer

Ibm bluemix timeout after 60sec

I try to run a loop for 1000 times, when the program reaches 60 seconds typing this error Internal Server Error Sample code for i in range(1000,0,-1): wc = fun_A(funInput) #function time.sleep(i/1000) Εrror is only when reach the 60sec. I…
1
2 3
11 12