【发布时间】:2018-06-14 02:13:21
【问题描述】:
我正在尝试使用 OpenWhisk 运行此功能:
def main():
return {"payload": "Hello world"}
以下内容:
> bx wsk action create hello_python hello_python.py
> bx wsk action invoke hello_python
在本地运行该函数时,会返回一个字典,但运行上述内容会出现此错误:
"result": {
"error": "The action did not return a dictionary."
}
我在这里错过了什么?
【问题讨论】:
标签: python ibm-cloud openwhisk ibm-cloud-functions