Self-hosting your Moralis server

Inside the logs folder, there are log files e.g. for normal logs and error logs.

These lines break the Parse Dashboard (theyā€™re the same ones in the error log file), if you didnā€™t get those in the normal log file, check it if thereā€™s any other different ones that need to be removed.

It should be any ones that look like:

{"code":141,"level":"error
{"code":1,"level":"error"

If itā€™s important that you be able to check the Logs page, you may need to write a script that removes these problematic logs or try to fix the bug. Or just read from the log files directly.

Ok, thank you so much. Will check.
Pushed some changes to heroku (nothing related to log/error) and so far Log>Info is working fine.

Hi Team,

Sorry if this is not the right place for this issue but I have been noticing this metamask error ā€œTransaction Underpricedā€ with the self host server only so posting here. Any thoughts, please?

it looks like an error specific to a transfer, it could depend on the chain also, I donā€™t remember now a solution, it should be related to the gas price

1 Like

Hi. How did you manage to self host the server ? Iā€™d like to do the same with the ethereum react native boilerplate but I donā€™t know where to start

You can follow this tutorial to set up the self-hosted server.

Hi there,

I setup a self hosted moralis server, incl. Dashboard and SSL, and everything looks fine.

I want to use the server instance for e.g. authentication. When my client call the endpoint, I get a ā€œpermission deniedā€ error.

How to setup these? Especially also the Moralis apiKey and appId?

Every hint is welcomed.

Thanks,
Ali

What endpoint is called when you get that error?

POST on server/functions/getPluginSpecs

Response 403 Forbidden: {error: ā€œunauthorizedā€}

That usually means that you are not using latest version of Moralis v1 sdk.

Ok, getPluginSpecs works now.

What did I change: the appId is no in sync with the Client and Server.

But now I get the same error when calling

POST sol-getNFTs

Response 403 Forbidden: {error: ā€œunauthorizedā€}

And I do realise that the ā€œmessage signingā€ window doesnā€™t get fired up.

Anyone any idea?

Thanks!

It should be the same issue with the app id missing. You have latest version of v1 sdk?

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?