Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting {"error":"unauthorized"} #6

Closed
sgehrman opened this issue Feb 11, 2023 · 3 comments
Closed

getting {"error":"unauthorized"} #6

sgehrman opened this issue Feb 11, 2023 · 3 comments

Comments

@sgehrman
Copy link

I don't know what I'm doing. I did docker-compose up and trying these links:

parse server backend: https://localhost:1337/api
parse graphql API: https://localhost:1337/graphql
{"error":"unauthorized"}

parse dashboard: https://localhost:1337/dashboard
Configure a user to access Parse Dashboard remotely

frontend local dev server (with HMR): https://localhost:1234/
This shows the todo app, but says loading todos. And I can't add a todo.

How do I set up a user to access the dashboard? Why is the todos failing?

Thanks

@sgehrman
Copy link
Author

I got the Dashboard running by adding a user/pass to the .env

But getting:

myappname
Server not reachable: Invalid server state: initialized

@sgehrman
Copy link
Author

I can't get it working on localhost.

Request URL: https://localhost:1337/api/classes/Todo
Request Method: POST
Status Code: 500

{
"code": 1,
"error": "Invalid server state: initialized"
}

@sgehrman
Copy link
Author

I fixed it:

if (startLiveQueryServer) {
  ParseServer.createLiveQueryServer(httpServer);
}

parseServer.start();  <<====================== MUST CALL START

httpServer.listen(port, async () => {
  await initializeServer(config);

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant