Error: Parse Objects not allowed here

OXXY

When I try to run count function I get

Error: Parse Objects not allowed here

E2015-11-09T12:36:10.778Z]v184 Ran cloud function count with:
  Input: {}
  Result: Error: Parse Objects not allowed here
    at n (Parse.js:16:1063)
    at Parse.js:16:1927
    at Array.map (native)
    at n (Parse.js:16:1904)
    at n (Parse.js:16:1995)
    at r.default (Parse.js:16:2422)
    at Object.o.default.setCloudController.run (Parse.js:13:2159)
    at Object.n [as run] (Parse.js:13:1730)
    at e.query.find.success (main.js:10:19)
    at e.<anonymous> (Parse.js:14:28224)

The searching result guide me to this question, But All the tutorials mention sending parameters in this way. And this code used to be functioning well.

Count Function :

Parse.Cloud.define('count', function(request, response) {

var query = new Parse.Query('MyS');
  query.equalTo("Notify", true);
  query.notEqualTo ("MainEventCode", '5');

  query.find({
    success: function(results) {
      Parse.Cloud.run('http', {params : results}).then(
        function(result) {
          console.log('httpResponse is : ' + result);
          response.success('Done !');
        }, function(error) {
          console.log('Error while RUN !' + error);
      });
    },
    error: function(error) {
      response.error(error);
    }
  });
});

http Function :

Parse.Cloud.define('http', function(request, response) {

var query = new Parse.Query(Parse.Installation);
.
.
.
}
KingPolygon

I'm assuming results is an array of PFObjects. Unfortunately you can not send PFObjects or an array containing PFObjects as parameters. Instead you'll need to send an array of their object Ids, and retrieve the actual objects in your http function.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Column not allowed here error

From Dev

Error: 'void' type not allowed here

From Dev

Apache error "AliasMatch not allowed here"

From Dev

Apache error "AliasMatch not allowed here"

From Dev

Error: 'void' type not allowed here

From Dev

Why can I not parse my simple YAML file without yielding the error "mapping values are not allowed here"?

From Dev

500 Error on apache server - "AllowOverride not allowed here"

From Dev

Java swing error " 'void' type not allowed here "

From Dev

500 Error on apache server - "AllowOverride not allowed here"

From Dev

"Declaration Not allowed here" and "Constant Expression" Error in C

From Dev

" 'void' type not allowed here " Error message

From Dev

Yaml error - mapping values are not allowed here

From Dev

How to fix syntax error for [not allowed here]?

From Dev

SQL Error: ORA-00984: column not allowed here

From Dev

error- column not allowed here & too many values upon insert

From Dev

Epubcheck: "Error while parsing file 'element "animate" not allowed here..."

From Dev

Epubcheck: "Error while parsing file 'element "animate" not allowed here..."

From Dev

c++/cx - Error: a delegate type is not allowed here

From Dev

How to solve Element compilerArgs is not allowed here Error in maven compiler plugin?

From Dev

"AllowOverride not allowed here" in WAMP

From Dev

AllowOverride not allowed here

From Dev

"set" directive is not allowed here

From Dev

.htaccess: LogLevel not allowed here

From Dev

variable declaration not allowed here

From Dev

Array initializer is not allowed here

From Dev

"AllowOverride not allowed here" in WAMP

From Dev

variable declaration not allowed here

From Dev

Why does Firefox throw on JSON parse error here?

From Dev

Duplicates not allowed error in ng-repeat when list of objects in an array

Related Related

  1. 1

    Column not allowed here error

  2. 2

    Error: 'void' type not allowed here

  3. 3

    Apache error "AliasMatch not allowed here"

  4. 4

    Apache error "AliasMatch not allowed here"

  5. 5

    Error: 'void' type not allowed here

  6. 6

    Why can I not parse my simple YAML file without yielding the error "mapping values are not allowed here"?

  7. 7

    500 Error on apache server - "AllowOverride not allowed here"

  8. 8

    Java swing error " 'void' type not allowed here "

  9. 9

    500 Error on apache server - "AllowOverride not allowed here"

  10. 10

    "Declaration Not allowed here" and "Constant Expression" Error in C

  11. 11

    " 'void' type not allowed here " Error message

  12. 12

    Yaml error - mapping values are not allowed here

  13. 13

    How to fix syntax error for [not allowed here]?

  14. 14

    SQL Error: ORA-00984: column not allowed here

  15. 15

    error- column not allowed here & too many values upon insert

  16. 16

    Epubcheck: "Error while parsing file 'element "animate" not allowed here..."

  17. 17

    Epubcheck: "Error while parsing file 'element "animate" not allowed here..."

  18. 18

    c++/cx - Error: a delegate type is not allowed here

  19. 19

    How to solve Element compilerArgs is not allowed here Error in maven compiler plugin?

  20. 20

    "AllowOverride not allowed here" in WAMP

  21. 21

    AllowOverride not allowed here

  22. 22

    "set" directive is not allowed here

  23. 23

    .htaccess: LogLevel not allowed here

  24. 24

    variable declaration not allowed here

  25. 25

    Array initializer is not allowed here

  26. 26

    "AllowOverride not allowed here" in WAMP

  27. 27

    variable declaration not allowed here

  28. 28

    Why does Firefox throw on JSON parse error here?

  29. 29

    Duplicates not allowed error in ng-repeat when list of objects in an array

HotTag

Archive