ibm-cloud-functions

IBM Watson Assistant: How to solve web_action error “Internal error: Content-type can not be retrieved.”

99封情书 提交于 2021-02-10 14:26:48
问题 I'm trying to connect IBM Cloud Functions with a Watson Assistant dialog as web_action. So I have specified web_action as following in watson dialog json editor. "actions": [ { "name": "rajesh@heltha.co_dev/default/callKinvey", "type": "web_action", "parameters": { }, "credentials": "$private.mycredential", "result_variable": "context.my_input_returned" } ] Now, the issue is while testing assistant I'm getting following error Internal error: Content-type can not be retrieved. (and there is 1

IBM Watson Conversation & IBM Cloud Functions : User Input For Parameters

不打扰是莪最后的温柔 提交于 2020-01-10 06:10:09
问题 I have already created a function in IBM Cloud Functions , but how would I implement the parameters from user input? What I'm trying to do is For example: When a user types in "I need product " / "Buy product now" / Show me products . The product input is taken as a parameter and implements it into my Cloud Function, which displays all products that uses product as a keyword. The response text would get info from the Cloud Function return output (which is a JSON array) (res.body.items[?].name

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

房东的猫 提交于 2020-01-06 05:39:07
问题 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 Assistant, it appears the request contains both a value object containing all the expected parts of the payload for a Skill, and a session_id. I would like to access this session_id in my skill to pass it along to cloud functions that may want to

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

风格不统一 提交于 2020-01-05 02:32:56
问题 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. ow.actions.invoke({name, blocking: true, result: true, params}) ...but in this case, the action takes multiple minutes to complete which leads to a timeout in the HTTP connection. The SDK throws an error after sixty seconds. How can I retrieve an action

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

老子叫甜甜 提交于 2020-01-05 02:31:57
问题 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. ow.actions.invoke({name, blocking: true, result: true, params}) ...but in this case, the action takes multiple minutes to complete which leads to a timeout in the HTTP connection. The SDK throws an error after sixty seconds. How can I retrieve an action

IBM Cloud Functions - How to use and upload own libraries?

泄露秘密 提交于 2019-12-24 11:35:35
问题 Is it possible to use / upload own libraries to IBM Cloud Functions? Or is it limited to the preinstalled packages? I plan to use Python as programming language. 回答1: You can bundle your own dependencies. See the docs here https://github.com/apache/incubator-openwhisk/blob/master/docs/actions-python.md#packaging-python-actions-with-a-virtual-environment-in-zip-files for creating a virtual environment with your libraries. The docs provide an example installing dependencies via requirements.txt

ibmcloud create action through cli

只谈情不闲聊 提交于 2019-12-11 15:33:31
问题 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 auth key; if Space 'dev' was recently created, try again in a couple minutes. But I have logged in successfully using ibmcloud login command 回答1: Issue is resolved now. The account I created at IBM was lite account where the initial credentials were