Skip to content

Parse Server Unauthorized Error #127

Closed
@conan311

Description

@conan311

Hi Guys,

I know we are all on the same boat as Parse lovers but especially I am now very devastated since I had zero knowledge about Node.js and MongoDB. I spent a couple of days studying a bit about them and now got some basic concepts. I have been trying to set up a Parse server and MongoDB locally first. I have installed them correctly (I believe) but when I run "npm start" to start Parse Server, I got the following messages. FYI I see mongod and mongo running without an issue.

DATABASE_URI not specified, falling back to localhost.
parse-server-example running on port 1337.

In browser, if I go to "localhost:1337/parse", it gives me the following error. (localhost:1337 is fine)

{"error":"unauthorized"}

And this is my API setup. I did provide databaseURI but don't know why it is complaining that it is not specified.

var api = new ParseServer({
databaseURI: 'mongodb://localhost:27017/dev',
appId: 'xxx',
masterKey: 'yyy'
});

Not sure what I am missing or set up incorrectly. Please advice me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions