Hi, I have and error saving data on IPFS using Moralis.EvmApi.ipfs.uploadFolder.
I send data from javascript using axios.post to my backend in node.js
This is my abi:
[
{
path: 'metadata.json',
content: {
PlotID: '0xca060fe0631114c2392bbf43b75b10a3006b2562588b58cb8b4abb7b9895b9fd',
PlotX: '5',
PlotY: '7',
LocationX: '500',
LocationY: '700',
imageHash: 'Qmar3TbD4SJCVomEHYADm8gjtmM4Zz2C9DJvRLhse9KQLH',
imageIpfs: 'https://ipfs.moralis.io:2053/ipfs/Qmar3TbD4SJCVomEHYADm8gjtmM4Zz2C9DJvRLhse9KQLH/0xca060fe0631114c2392bbf43b75b10a3006b2562588b58cb8b4abb7b9895b9fd.png'
}
}
]
and this is what I get
C:\myproject\Api\node_modules\express\lib\response.js:1150
: JSON.stringify(value);
^
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 ()
at stringify (C:\myproject\Api\node_modules\express\lib\response.js:1150:12)
at ServerResponse.json (C:\myproject\Api\node_modules\express\lib\response.js:271:14)
at ServerResponse.send (C:\myproject\Api\node_modules\express\lib\response.js:162:21)
at exports.savePlotToIPFS (C:\myproject\Api\moralis\moralis.controller.js:304:21)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
It worked days ago, then suddenly stopped
Any suggestion???
Thanks