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