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

How to use Hyperledger Fabric node SDK packages in an IBM Cloud Functions action?

I am trying to create an IBM Cloud Functions blockchain node.js action that uses a Hyperledger Fabric node SDK package, but I'm having trouble requiring the fabric-network package in the action. Since it is a 3rd party package, it seems I need to…
0
votes
0 answers

Invoking IBM Cloud Functions with curl results in ""The supplied authentication is invalid"

I created a hello world action, could invoke it in the browser. Invoking with curl and using the API key provided resulted in an error: $ curl -u API-KEY -X POST…
jpsstack
  • 1,221
  • 4
  • 18
  • 29
0
votes
1 answer

IBM Watson Assistant: How can Skill gain access to session_id using V2 of WA API's

The V2 APIs for IBM Watson Assistant ask that you get a session_id and then use it in subsequent calls to the Assistant in order for global context values to be preserved across calls. Looking at the Preview link webpage we associated with our…
wnm3
  • 381
  • 3
  • 17
0
votes
1 answer

IBM Cloud Functions: Is it possible to have a function made of multiple Javascript files?

So I am trying to deploy a function that uses multiple javascript files. The only way I see to deploy a function is with a single index.js file. Is there some what to add more files? I have the CLI setup but still only see examples uploading a…
user4626554
0
votes
1 answer

Wrong resource controller URL when binding a service to a cloud function

I have defined an IBM Cloud Function action and am trying to bind an existing IoT service to it using CLI, as described in documentation: ibmcloud fn service bind iotf-service myActionName The task fails with the error: error: Unable to query…
mustaccio
  • 18,234
  • 16
  • 48
  • 57
0
votes
1 answer

Sending appropriate error responses on web actions

I have some web-enabled actions that are exposed through API Connect in IBM Cloud Serverless Functions. Some of my actions use request-promises to call external REST services and I need to be able to catch an error and respond with an appropriate…
0
votes
1 answer

ibmcloud create action through cli

ibmcloud create action through cli is not working . Getting an exception Unable to authenticate with Cloud Functions: Unable to obtain wsk authentication key for Org 'xxxxx' and Space 'xxxx': Target Org 'xxxxm' and Space 'xxxx' do not have an…
0
votes
1 answer

IBM Function returning weird data back when calling REST API Endpoint

I have an IBM Cloud Function like: return {'body': csv_output.getvalue(), 'headers': {'Content-Type': 'text/csv', 'Content-Disposition': 'attachment;filename=dat.csv'}} When called a public API endpoint it returns a csv…
NoviceMe
  • 3,126
  • 11
  • 57
  • 117
0
votes
1 answer

Send function output as an email in IBM cloud functions

I have following code which gives me a csv file: def main(args): data = get_data() csv_output = get_csv_file_data(data) return {'body': csv_output.getvalue(), 'headers': {'Content-Type': 'text/csv', …
NoviceMe
  • 3,126
  • 11
  • 57
  • 117
0
votes
2 answers

How to loop through a database table with big number of records

I'm using Scrapy library to scrape a website where people selling cars. I'm using Python and IBM Cloud functions and Scrapy to achieve that. The idea is to scrape the site every day with IBM Cloud actions and add every vehicle to the vehicles table…
Boky
  • 11,554
  • 28
  • 93
  • 163
0
votes
1 answer

How to call a web-action from watson assistant dialog node?

I am trying to call a simple web-action from my dialog node. Both service and cloud space is hosted in London, still I am getting error that "Direct CloudFunctions calls are not supported on this platform". I have created a simple skill and added 3…
Rahul
  • 269
  • 2
  • 10
  • 25
0
votes
1 answer

Implementing a chatbot using FB Messenger with file upload functionality in Bluemix

We are implementing a chatbot using FB Messenger. One of their requirements is that the customer have set of guides, documents (PDF, DocX), which they want to store in IBM Cloud. Whenever user asks for download of a guide then the chatbot should…
0
votes
1 answer

Return csv data as a result for IBM Cloud Function

I have a function written in Python for IBM cloud. Which return results as json, for the following python dictionaries: return {"billing_for_org": output1, "billing_for_org2:": output2} Is there a way to return this data as a CSV file? So when I…
NoviceMe
  • 3,126
  • 11
  • 57
  • 117
0
votes
1 answer

Calling IBM Function through HTTP

I created a function in IBM cloud which displays some JSON data when invoked. I am trying to figure out how client can consume this information. I am unable to find any information on net. I would like to preferable access the function through HTTP…
NoviceMe
  • 3,126
  • 11
  • 57
  • 117
0
votes
1 answer

Trying to run code in IBM Cloud Functions

I have following code I am trying to run in IBM function to get billing data out: iam_token = 'Bearer eyJraWQiOiIyMDE3MTAzMC0wM****' def processResourceInstanceUsage(account_id, billMonth): METERING_HOST =…
NoviceMe
  • 3,126
  • 11
  • 57
  • 117