As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
Using Collection Access' (http://devcenter.kinvey.com/rest/reference/business-logic/reference.html#collection-access-module) count() causes the error below. Was working before this.
{
"error": "BLRuntimeError",
"description": "The Business Logic script has a runtime error. See debug message for details.",
"debug": "TypeError: Cannot call method 'on' of undefined"
I also encountered this problem too. What's weird is that last week it worked perfectly, but now I didn't even change any of my code lately and I got that error too.
M
Michael
said
over 9 years ago
This was due to a software bug which has since been resolved. We apologize for the inconvenience.
J
Joel Margolese
said
over 9 years ago
I'm not sure if it's related, but I'm finding that collectionAccess.count() now (sometimes it seems) returns the count as an object rather than an integer as per the MongoDb documentation. i.e. in the code below I used to get response == and now I get: { count : }
(this is similar to a post I made earlier today that collectionAccess.findAndModify() now returns the entity wrapped in a .entity{} object rather than just the doc.
Ow Choong Seong
{
"error": "BLRuntimeError",
"description": "The Business Logic script has a runtime error. See debug message for details.",
"debug": "TypeError: Cannot call method 'on' of undefined"
}