title: Parse Server Cloud Code Error 141: Unauthorized
body: <p>I have just created a parse-server deployment for learning on Cloud9 and everything works fine when I am accessing it using the REST API using PostMan. I am now trying out Cloud Functions.</p>
  
  <p>I have the following code in my cloud.js file,</p>
  
  <pre><code>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);
            }
        })
  });
  </code></pre>
  
  <p>And in the response I get the following error,</p>
  
  <pre><code>{
    "code": 141,
    "error": {
      "message": "unauthorized"
    }
  }
  </code></pre>
  
  <p>My request on PostMan looks something like this,</p>
  
  <p><a href="https://i.stack.imgur.com/Bi8m7.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Bi8m7.png" alt="Postman request with headers and URL"></a></p>
  
  <p>The response is fine as long as I do not try a query and send a simple response like <code>response.success("OK")</code>. </p>
  
  <p>Is this an issue with Parse or am I missing something related to authorization?</p>