Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/visual-studio-2010/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Parse platform httpRequest失败的后台作业_Parse Platform - Fatal编程技术网

Parse platform httpRequest失败的后台作业

Parse platform httpRequest失败的后台作业,parse-platform,Parse Platform,我正在用CloudClode中的一个httpRequest运行后台作业。我正在使用来自的httpRequest代码 这将始终在仪表板中的作业状态中返回失败。我以为我超过了我的并发工作限制,所以我取消了其他计划的工作,但它仍然不起作用。有什么想法吗 编辑:当作业失败时,消息列中没有消息:(我最终使用Parse.Cloud.define将作业转换为函数,并将其作为函数运行。您可以获得更好的调试消息,以找出http请求的错误 Parse.Cloud.job("test", function(reque

我正在用CloudClode中的一个httpRequest运行后台作业。我正在使用来自的httpRequest代码

这将始终在仪表板中的作业状态中返回失败。我以为我超过了我的并发工作限制,所以我取消了其他计划的工作,但它仍然不起作用。有什么想法吗


编辑:当作业失败时,消息列中没有消息:(

我最终使用Parse.Cloud.define将作业转换为函数,并将其作为函数运行。您可以获得更好的调试消息,以找出http请求的错误
Parse.Cloud.job("test", function(request, status) {
  Parse.Cloud.httpRequest({
    url: 'http://www.parse.com/'
  }).then(function(httpResponse) {
    // success
    status.success(httpResponse.text);
  },function(httpResponse) {
    // error
    status.error('Request failed with response code ' + httpResponse.status);
  });
});