yea i checked it is hitting to the right APP IDā¦i have a concernā¦when i open my self hosted server on http://localhost:1337/server
then also i see the error
{"error":"unauthorized"}
yea i checked it is hitting to the right APP IDā¦i have a concernā¦when i open my self hosted server on http://localhost:1337/server
then also i see the error
{"error":"unauthorized"}
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);
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.
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