Self-hosting your Moralis server

I have followed instructions in the video but when I authorize with Metamask it gives me an error ‘Moralis auth failed, invalid data’. What is wrong?

yes, I do have the latest version v1 of the sdk

Very strange,

I don’t set the responseType in my code, but it’s used… how?

Without the responseType it works, when I use the Dashboard.

the responseType should not be the issue, is there an application is sent in that request?

Unfortunately the server says otherwise:

I’m using this endpoint: functions/sol-getNFTs, so just address and network

you could try to call that cloud function directly only with some parameters

I call like this. As you can see, no responseType is set. Who does that?

probably the sdk somewhere in code, you can call that cloud function directly equivalent with that web3api call

OK, tried to call it manually:

image

Am I the only one?

what url gave that 403 error there?

https://myserver/server/functions/sol-getNFTs

is there any difference in network tab compared to how it was when it was called with the api?

'Yes, the responseType is now missing

I mean, all the other fields are the same or not? is there an application id?

how shall the caller authenticate? The api-key is set, all good, still unauthorised.

Tried calling directly
https://solana-gateway.moralis.io/account/mainnet/… and this works

Oh shit, got it

The header x-parse-application-id was missing.

Thanks for the hint

2 Likes

Hi @cryptokid, may I know the minimum requirement for a self-host server? Regarding hardware and OS.
I have tried to check it out from the document/guide but have had no luck.

I really appreciate any help you can provide.

1 Like

Hi @peh1696
Please create a new post for any other questions related to self host server.