2017-08-17 12 views
0

私のクラウドコード "テスト"で機能を実行したい。これは私の完全な雲コードです。私は郵便配達を経由して、それを呼び出すとパーズクラウドコードエラー141無効な機能

Parse.serverURL = 'http://MY_IP.compute-1.amazonaws.com/parse/'; 

Parse.Cloud.define("countUsers", function(request, response) { 
    var query = new Parse.Query("_Users"); 
    query.count({ 
     success: function(count) { 
      response.success(count); 
     }, 
     error: function(error) { 
      response.error("Count failed" + error.message); 
     } 
    }); 
}); 

Parse.Cloud.define('hello', function(request, response) { 
    response.success('Hi'); // it works 
}); 

Parse.Cloud.job('test', function(request, response){ 
    response.success('OK'); 
}); 

私はこのエラー

{ 
    "code": 141, 
    "error": "Invalid function: \"hello\"" 
} 

私が間違って行っているかもしれないものの任意のアイデアを得ますか?

答えて

0

あなたの機能に合わせてWebhookを定義するのを忘れたのかもしれません。解析ダッシュボードのWebhooksセクションで簡単に関数を定義できます。