【发布时间】:2016-08-22 12:25:36
【问题描述】:
我已经用 curl 尝试了以下代码,但它现在可以工作了,请看一下,谢谢
功能:
Parse.Cloud.define('hello', function(req, res) {
res.success('Hello world!');
});
卷曲网址:
curl -X POST -H "X-Parse-Application-Id: xxx" -H "X-Parse-REST-API-Key: xxx" [http][xxx]/parse/functions/hello
错误:
Result: TypeError: Cannot call method 'runRequestListener' of undefined
at handleRequest (http.js:551:11)
at Parse.Cloud._runCustomEndpoint (<anonymous>:204:7)
【问题讨论】:
-
是否必须登录才能执行云代码?
标签: javascript curl parse-platform