I set up the parse server from the demo and it was working fine (messages were requesting fine, and they were being verified( and users objects) were being returned ). but now when i try connecting to it from my front end i can only request messages, i get these errors when trying to verify the sigs.
response: {
status: 500,
statusText: āInternal Server Errorā,
headers: [Object],
config: [Object],
request: [ClientRequest],
data: [Object]
}
}
}
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
i am calling them like so:
REQUESTING MESSAGES:
const userData = { address, chain: chain.id, network: āevmā };
const { data } = await axios.post(
${AUTH_API_URL}/api/auth/request-message
,
userData,
{
headers: {
ācontent-typeā: āapplication/jsonā,
},
}
);
and VERIFYING SIGS:
const message = data.message;
const signature = await signMessageAsync({ message });
const signData = { message, signature };
const { user } = await axios.post(
`${AUTH_API_URL}/api/auth/sign-message`,
signData,
{
headers: {
"content-type": "application/json",
},
}
);