I’m developing a dapp using node.js and IPFS, where the user can select a file from a web page and upload it to IPFS. My problem is that I can’t connect my app to the IPFS API, even though the daemon is running correctly on my machine.
Every command from cli works correctly as well, but if I try to replicate, for instance, the “add” command on my app, it doesn’t work.
The error I get when I use the create() command is:
FetchError: request to http://localhost:5001/api/v0/version failed, reason: connect ECONNREFUSED ::1:5001
I’ve already allowed CORS requests but nothing changed.
Could someone help me, please? I really do not know what to do anymore