[SOLVED] Errors with self hosted server migration

Hi! I try to remove my dapp to self hosted server. I set up your project migration-demo-parse-server and have usual error:unauthorized.

I try to set up parse-server-migration-react-client and it’s working.
But when I try run my dapp (I changed server url to http://localhost:1337/server) I have some errors:
not found http://localhost:1337/server/functions/getPluginSpecs
and Invalid session token at https://unpkg.com/moralis-v1/dist/moralis.js

maybe I missing something…
Can you help me with it?

Hi.
You have to use latest version of moralis v1 sdk, probably you are already doing that.

this should not get a not found error

For authentication you have to use a different protocol as described here:

Usually you get that unauthorized error for cloud functions when the app id is not sent to the server or when it is not the expected one.

and it was the app id, now it works thanks!

3 Likes

Perfect! :star_struck:

If you have any other questions, feel free to make another thread as we will close this one

We’ll be available 24/7 to assist you :grinning_face_with_smiling_eyes: