Self-hosting your Moralis server

that is the expected error when you open it in the browser because you donā€™t provide the app id

Can there be anything else which is making a problemā€¦can we connect somewhere so i can brief you the problem more!

you could add some logging in the server code, that is the expected output for when the appId is not sent in that request or when it doesnā€™t have the expected value

you could try to make a request with postman too to see if it works

you could also join Discord

OHK iā€™ll try these thing and ping you back!

you can also disable that appId check server side for cloud functions

app.use('/server/functions/:functionName', (req, res, next) => {
  req.headers['x-parse-application-id'] = '001';
  next();
});

app.use(`/server`, parseServer);

Ya the cloud fucntion is working but the clientId remains the same
image
@cryptokid

I think that clientId is specific to web3auth

i didnā€™t get it?
what does this mean?

maybe this helps

Hi Team, not sure what happened, I was trying to update the moralis sdk in my application and ended up with below error:
node_modules\moralis-v1\lib\browser\Parse.js doesnā€™t exist. Please help

can you revert or delete everything from node_modules folder and try again?

How can I revert? I ran ā€˜yarn add moralisā€™ first and that lead to cant resolve errors for which I ran below commands:
yarn add @metamask/detect-provider
yarn add react-moralis
yarn add @walletconnect/web3-provider
yarn add moralis-v1

from what version of moralis SDK you tried to update?

I think it was 1.2.xā€¦

what type of project is this? is a front end project in react?

Yes, cloned from ethereum boilerplate from earlier this year.

Its fixed!! I just had to change from moralis to import { Moralis } from ā€œmoralis-v1ā€, in all components and restarted UI.

1 Like

We are able to resolve by replacing the message with the this cloud function

    const { message } = await Moralis.Cloud.run('requestMessage', {
      address: '<MY ADDRESS>',
      chain: 5,
      network: 'evm',
    })

but i want my appā€™s message to be visible ā€¦how can i add my text to the message?
@cryptokid

export async function requestMessage({
  address,
  chain,
  networkType,
}: {
  address: string;
  chain: string;
  networkType: 'evm';
}) {
  const result = await Moralis.Auth.requestMessage({
    address,
    chain,
    networkType,
    domain: DOMAIN,
    statement: STATEMENT,
    uri: URI,
    expirationTime: EXPIRATION_TIME,
    timeout: TIMEOUT,
  });

how to change this so only statement is displayed at metamaskā€¦if i delete any thing

there should be a config where you can change the message, try to check that requestMessage cloud function