MoralisWeb3 / Moralis-JS-SDK

Moralis Official Javascript SDK

Home Page:https://docs.moralis.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Unauthorized in parse-server-migration

nconfrey opened this issue · comments

parse-server-migration

Checklist

Issue Description

I'm completing the steps detailed in the tutorial for the Parse Server Migration and when I'm running my server at http://localhost:1337/server I'm only getting Unauthorized as a result:

{"error":"unauthorized"}

When I hook up my frontend to this localhost server, all my Moralis queries fail with 403 Forbidden.

Steps + code to reproduce

Even the screenshots in the tutorial have the error unauthorized (scroll to the bottom).

Following the steps in the tutorial, plugging in my keys into the .env file leads to a 403 Forbidden.

This is expected behaviour and is how parse-server works. When you see {"error":"unauthorized"} then it means that the server is up and running. See https://community.parseplatform.org/t/error-unauthorized-when-run-parse-server/2635 for more info.

The 403 error can have different causes. I have too little info to help you on it. I verified with the example react app (https://v1docs.moralis.io/moralis-dapp/getting-started/self-hosting-moralis-server/client-connection) and works without the 403 error.

If you are still stuck then I would advise to test with the example React app, and check if that works. Or search/ask on the Moralis Forums for more help. More people are available on the forums to help you out.

Closing this issue as this is expected behaviour on parse-server-migration demo.