Hello,
Using:
"moralis": "^2.14.1"
nodejs16
I am calling this methods:
await Moralis.start({
apiKey: process.env.MORALIS_API_KEY,
});
await Moralis.EvmApi.nft.getWalletNFTs({
address: username,
chain: Chains.EvmChain,
});
I get this error:
"TypeError: Converting circular structure to JSON",
" --> starting at object with constructor 'ClientRequest'",
" | property 'socket' -> object with constructor 'TLSSocket'",
" --- property '_httpMessage' closes the circle",
" at JSON.stringify (<anonymous>)",
" at Runtime.module.exports.handler (/var/task/src/handlers/getNFTsMoralisLambda.cjs:56:26)",
" at processTicksAndRejections (node:internal/process/task_queues:96:5)"
I canāt seem to make this SDK and API work guysā¦
The import
statement fails for me when used within a node module. See my other post: JS SDK ECMAScript import issue
Now the API itself throws this error.
Iām wasting a lot of time compared with youāre competition (Alchemy) where itās pretty smooth sailing. Just want to share my honest feeling here.
best