0

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

1 Answer 1

0

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"

Sign up to request clarification or add additional context in comments.

10 Comments

Thank you Davi, this was unfortunately a typo on my end. I updated the question to reflect the correct settings which I have tried without success.
Would you mind to try opening the dashboard on http://localhost:4040?
I tried opening the dashboard on localhost:4040 as suggested but the problem remains unfortunately.
Could you share everything you see on your browser console and also on the requests that are failing on your network tab?
Hello and thanks for replying. I have edited the original post to include the two screen shots.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.