Parse.com CloudCode beforeSave触发错误

时间:2016-03-14 14:29:35

标签: parse-platform triggers cloud-code

上下文:parse.com CloudCode,在数据对象对象更新时执行beforeSave()触发器。

在简单的触发器功能中获得一系列无法​​解释的错误(下面的代码)。错误主要是

  

结果:未捕获未定义

但也有几个

  

结果:执行超时

代码很简单,我已将其检查到我不认为这是由于代码而导致的错误,但无论如何包括它,因为我知道人们会要求查看它。

这似乎(似乎!)是Parse本身的一个问题,我一直无法解决。

Parse.Cloud.beforeSave("LogoItem", function(request, response) {

var name = request.object.get("productName");
if (typeof name == "undefined") {
    name = "";
}
request.object.set("lowercaseName", name.toLowerCase());

response.success();  // Tells parse not to cancel save

});

我的问题是,是否有人看过这个问题并能够解决问题?

以下是一些额外的细节(来自解析的日志)可能不会太有用(但永远不会知道)......

E2016-03-14T14:12:26.306Z] - v643 Ran job ShopSenseJob with:
  Input: {"plan":"paid"}
  Result: ERROR: startDownloadItems() failed with error [undefined: undefined] undefined: undefined

E2016-03-14T14:11:01.536Z] - v643 before_save triggered for LogoItem as master:
  Input: {"original":{"activeURL":"http://api.shopstyle.com/action/apiVisitRetailer?id=486671765\u0026pid=uid4009-26060253-59","category":5,"createdAt":"2016-03-14T13:41:07.487Z","imageURL":"https://resources.shopstyle.com/pim/aa/92/aa9286b799d7640f276657fa5e41ee92_best.jpg","importMarkerTag":6624,"lowercaseName":"mid rise skinny with knee holes in marie vintage blue","objectId":"8o9e8nMF7m","productName":"Mid Rise Skinny With Knee Holes In Marie Vintage Blue","referenceURL":"http://www.shopstyle.com/p/7-for-all-mankind-mid-rise-skinny-with-knee-holes-in-marie-vintage-blue/486671765?pid=uid4009-26060253-59","ssBrandId":3,"ssBrandName":"7 For All Mankind","ssDate":{"__type":"Date","iso":"2014-12-05T00:00:00.000Z"},"ssId":486671765,"ssRetailerId":193,"thumbnailURL":"https://resources.shopstyle.com/pim/aa/92/aa9286b799d7640f276657fa5e41ee92_best.jpg","updatedAt":"2016-03-14T13:41:07.487Z"},"update":{"importMarkerTag":1556}}

  Result: Execution timed out

E2016-03-14T14:10:21.498Z] - v643 Ran job ShopSenseJob with:
  Input: {}
  Result: ERROR: startDownloadItems() failed with error [undefined: undefined] undefined: undefined

E2016-03-14T14:08:18.638Z] - v643 before_save triggered for LogoItem as master:
  Input: {"original":{"activeURL":"http://api.shopstyle.com/action/apiVisitRetailer?id=490062821\u0026pid=uid4009-26060253-59","category":2,"createdAt":"2016-03-14T13:40:12.971Z","imageURL":"https://resources.shopstyle.com/pim/20/cb/20cb7387834dd02ac9d950bde0f57b83_best.jpg","importMarkerTag":1556,"lowercaseName":"baggu basic tote in brown","objectId":"I4UTiUMnUG","productName":"Baggu Basic Tote In Brown","referenceURL":"http://www.shopstyle.com/p/baggu-basic-tote-in-brown/490062821?pid=uid4009-26060253-59","ssBrandId":-1,"ssBrandName":"","ssDate":{"__type":"Date","iso":"2014-12-03T00:00:00.000Z"},"ssId":490062821,"ssRetailerId":193,"thumbnailURL":"https://resources.shopstyle.com/pim/20/cb/20cb7387834dd02ac9d950bde0f57b83_best.jpg","updatedAt":"2016-03-14T14:06:12.708Z"},"update":{"importMarkerTag":1556}}

  Result: Uncaught undefined

E2016-03-14T14:08:18.225Z] - v643 Ran job ShopSenseJob with:
  Input: {}
  Result: ERROR: startDownloadItems() failed with error [undefined: undefined] undefined: undefined

E2016-03-14T14:06:12.824Z] - v643 before_save triggered for LogoItem as master:
  Input: {"original":{"activeURL":"http://api.shopstyle.com/action/apiVisitRetailer?id=489915836\u0026pid=uid4009-26060253-59","category":2,"createdAt":"2016-03-14T13:40:13.193Z","imageURL":"https://resources.shopstyle.com/pim/14/ef/14ef17ff769227c4293892e770fcf50a_best.jpg","importMarkerTag":1556,"lowercaseName":"basic tote in black","objectId":"JQ7GuRjfgH","productName":"Basic Tote In Black","referenceURL":"http://www.shopstyle.com/p/baggu-basic-tote-in-black/489915836?pid=uid4009-26060253-59","ssBrandId":25820,"ssBrandName":"Baggu","ssDate":{"__type":"Date","iso":"2014-12-02T00:00:00.000Z"},"ssId":489915836,"ssRetailerId":193,"thumbnailURL":"https://resources.shopstyle.com/pim/14/ef/14ef17ff769227c4293892e770fcf50a_best.jpg","updatedAt":"2016-03-14T14:06:10.013Z"},"update":{"importMarkerTag":1556}}

  Result: Execution timed out

E2016-03-14T14:05:23.844Z] - v643 Ran job ShopSenseJob with:
  Input: {}
  Result: ERROR: startDownloadItems() failed with error [undefined: undefined] undefined: undefined

0 个答案:

没有答案