【发布时间】:2021-08-12 07:41:07
【问题描述】:
在开发使用自己的样式的客户端应用程序时,在后台也使用IBM Watson Assistant,当超出 webhook 的时间时发现了问题。组成如下:客户端应用向Watson Assistant发送请求,助手从那里触发webhook,然后触发IBM Cloud Function。
在link 之后,一位男士可以看到其中一个常见问题解答中声明了时间限制(8 秒)不能延长。是否也包括拨打IBM Cloud Function的情况?
更新:
async function main(){
try {
const orders = await db.getOrders();
if(orders.quantity > 0){
return {data: 'there are some orders'};
} else {
return {data: 'there are no orders'};
}
} catch(err) {
return {error: err.message};
}
}
【问题讨论】:
标签: node.js ibm-cloud watson-assistant openwhisk ibm-cloud-functions