Analysis Server Cloud Error 141: Unauthorized

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:

Email request with headers and URLs

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?

+4
source share
1 answer

, , useMasterKey: true find.

query.find({ useMasterKey: true, success: function(data){ response.success(query); }, error: function(err){ response.error(err); } })
+3

Source: https://habr.com/ru/post/1672596/


All Articles