Skip to content

Uncaught Error: Cannot use the Master Key, it has not been provided. #606

@arckdash

Description

@arckdash

Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Dashboard!

  • You're running version >=1.0.20 of Parse Dashboard.

  • You're running version >=2.2.24 of Parse Server.
    // I'm using parse-server-example and it has defined into the package.json a dependency to parses-server: "", so I'm guessing that it always use the latest version.
    here more details:
    parse-server-example/package.json
    {
    "name": "parse-server-example",
    "version": "1.4.0",
    "description": "An example Parse API server using the parse-server module",
    "main": "index.js",
    "repository": {
    "type": "git",
    "url": "https://github.com/ParsePlatform/parse-server-example"
    },
    "license": "MIT",
    "dependencies": {
    "express": "~4.11.x",
    "kerberos": "~0.0.x",
    "parse": "~1.8.0",
    "parse-server": "
    "
    },
    "scripts": {
    "start": "node index.js"
    },
    "engines": {
    "node": ">=4.3"
    }
    }

  • You've searched through existing issues. Chances are that your issue has been reported or resolved before.

Environment Setup

I've an elastic beanstalk with a parse-server-example up and running, I already did test of connections from different platforms and also using postman and everything seems work fine.

But when I'm trying to run the parse-dashboard from my localhost (connected to my elasticbeanstalk) I'm getting the error detailed below. I've no idea what is the error and how to fix it. Any idea would be useful.

// Localhost
parse-dashboard/Parse-dashboard/parse-dashboard-config.json
{
"apps": [
{
"serverURL": "http://url_to_my_elasticbeanstalk/parse", // NOTE: This is exactly the url that I've defined.
"appId": "xxxxxxxxxx",
"masterKey": "xxxxxxxxxxxxx",
"appName": "xxxxxxxx"
}
]
}

Steps to reproduce

commands to start parse-dashboard:
cd parse-dashboard/Parse-dashboard
parse-dashboard --config parse-dashboard-config.json
[cmd]Console output:
The dashboard is now available at http://0.0.0.0:4040/

[browser]Console output: // clearly I've defined the Master key, and of course is the same one that I have defined on my server.

Uncaught Error: Cannot use the Master Key, it has not been provided.
at request (http://localhost:4040/bundles/dashboard.bundle.js:47:27278)
at Object.g._request (http://localhost:4040/bundles/dashboard.bundle.js:47:21590)
at e.value (http://localhost:4040/bundles/dashboard.bundle.js:1:21353)
at http://localhost:4040/bundles/dashboard.bundle.js:33:22423
at Array.map (native)
at e. (http://localhost:4040/bundles/dashboard.bundle.js:33:22266)
at e.s (http://localhost:4040/bundles/dashboard.bundle.js:4:27607)
at e.value (http://localhost:4040/bundles/dashboard.bundle.js:4:26967)
at XMLHttpRequest.i.onload (http://localhost:4040/bundles/dashboard.bundle.js:5:6995)
Running Ginger Widget version 0.1.0.608

Any idea ?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions