Skip to content

Parse Cloud always responds "unauthorized" #351

Closed
@leonardojobim

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 ...

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