I am having same issues as this post, but I do not see anything wrong with my parameters
const config = {
domain: 'https://localhost:3000',
statement: 'Please sign this message to confirm your identity.',
uri: 'https://localhost:3000',
timeout: 60,
};
const address='0xE725..........',
chain=5,
network='evm';
await Moralis.start({ apiKey: process.env.MORALIS_API_KEY });
const message = await Moralis.Auth.requestMessage({
address,
chain,
network,
...config,
});
getting error:
error - TypeError: Converting circular structure to JSON
--> starting at object with constructor 'ClientRequest'
| property 'socket' -> object with constructor 'TLSSocket'
--- property '_httpMessage' closes the circle