I just created a parsing deployment for training on Cloud9, and everything works fine when I access it using the REST API using PostMan. Now I'm trying to use Cloud features.
I have the following code in my cloud.js file,
Parse.Cloud.define('hello', function(request, response) {
var query = new Parse.Query("Test");
query.find({
success: function(data){
response.success(query);
},
error: function(err){
response.error(err);
}
})
});
And in response, I get the following error:
{
"code": 141,
"error": {
"message": "unauthorized"
}
}
My request for PostMan looks something like this:

The answer is fine until I try to fulfill the request and send a simple answer like response.success("OK").
Is this a problem with Parse, or am I not seeing something related to authorization?
source
share