0

我创建了一个hello world动作,可以在浏览器中调用它。

使用 curl 调用并使用提供的 API 密钥会导致错误:

$ curl -u API-KEY -X POST https://us-south.functions.cloud.ibm.com/api/v1/namespaces/jps_LMI/actions/HelloWorld?blocking=true
{"code":"cd01b7ea690a0454ef05016daa917bd3","error":"The supplied authentication is invalid"}

调用不受保护的请求工作正常:

https://us-south.functions.cloud.ibm.com/api/v1/web/jps_LMI/default/HelloWorld.json 
4

0 回答 0