尝试调用openwhisk操作时,我收到400错误,并显示以下结果并记录:
结果:
114492bd33e444c88492bd33e4a4c8a8
{
"error": "The action did not return a dictionary."
}
日志
[
"2018-02-12T20:20:27.224409701Z stderr: Traceback (most recent call
last):",
"2018-02-12T20:20:27.224534535Z stderr: File \"pythonrunner.py\", line
88, in run",
"2018-02-12T20:20:27.224550304Z stderr: exec('fun = %s(param)' %
self.mainFn, self.global_context)",
"2018-02-12T20:20:27.224559746Z stderr: File \"<string>\", line 1, in
<module>",
"2018-02-12T20:20:27.224578509Z stderr: File \"__main__.py\", line 308,
in main",
"2018-02-12T20:20:27.224587541Z stderr: if
datos_usuario[\"__ow_method\"]
== \"get\":",
"2018-02-12T20:20:27.224596543Z stderr: KeyError: '__ow_method'"
]
到目前为止,操作过程正常,这让我觉得错误可能与访问API的特定问题有关。关于如何解决这个问题的任何想法?
谢谢!