Skip to content

Parse Cloud always responds "unauthorized" #351

Description

@leonardojobim

I am receiving {"code":141,"error":"Error: undefined unauthorized"} for any Parse Cloud function, even for the simple "hello" function below ( I receive {"error":"unauthorized"}):

My parser-server is hosted in Heroku and using MongoLab.
My cloud/main.js file:

// from https://github.com/ParsePlatform/parse-server/issues/13
var port = process.env.PORT || 1337;
Parse.serverURL = 'https://localhost:' + port + '/parse';

Parse.Cloud.define('hello', function(req, res) {
  res.success('Hi');
});

// Other methods like beforeSave and afterSave ...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:questionSupport or code-level question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions