parse-dashboard running on local parse-server errors out in with: Failed to load resource: the server responded with a status of 404 (Not Found)

While setting up a local test environment with parse-server and parse-dashboard an error is displayed in the browser and the screen is just blank white.

mongodb-runner is running and working on mongodb://127.0.0.1:27017/parse

parse-server is running and working on http://localhost:1337/parse

parse-dashboard is loaded with the following information and running:

parse-dashboard --dev --appId yourAppId --masterKey yourMasterKey --serverURL "http://localhost:1337/parse" --appName optionalName

I received the appId together with the master key and mongodb instance during the setup of parse-server based on the prerequisites of installation http://docs.parseplatform.org/parse-server/guide/ with this command: sh <(curl -fsSL https://raw.githubusercontent.com/parse-community/parse-server/master/bootstrap.sh) which allowed me to generate the id and key

In addition I am using MongoDB Compass to review the database and everything looks great. I have been able to create a document by using simple curl -X POST
-H "X-Parse-Application-Id: APPLICATION_ID"
-H "Content-Type: application/json"
-d '{"score":123,"playerName":"Sean Plott","cheatMode":false}'
http://localhost:1337/parse/classes/GameScore

I am able to access the parse dashboard on http://0.0.0.0:4040 The browser screen shows the parse-dashboard colourful circles for a second and then turns blank white with the above error message in console.

I should also add that if I change the parameters in parse-dashboard command to use a cloud parse-server everything works fine, which makes me believe there is something not right with the parse-server running locally.

Screenshot of Javascript Console

Screenshot of Network Tab

Upvotes: 0

Views: 781

Answers (1)

Davi Mac&#234;do
Davi Mac&#234;do

Reputation: 2984

It looks your Parse Server is listening http but the dashboard is trying to use https. Please try --serverURL "http://localhost:1337/parse" instead of --serverURL "https://localhost:1337/parse"

Upvotes: 0

Related Questions