Moralis Mutant code and ipfs

I watched the YouTube video online and have the code working with saving the files to local disk but the ipfs part of the code in the video is not there. Is there a version that’s downloadable with the ipfs code?

Thanks,
zig

Im having the same issue.

Alex, found the code here with the IPFS stuff: https://github.com/anhonestboy/moralis-nft-engine

I was having the same problem and have now tried anhonestboy’s version of the code, replacing the serverURL, etc. I get the following error:

Welcome to META LEAGUE - Meet the Players
#########################################

C:\Users\Trader\Documents\anhonestboy\moralis-nft-engine-main\node_modules\moralis\lib\node\RESTController.js:440
error = new _ParseError.default(_ParseError.default.CONNECTION_FAILED, XMLHttpRequest failed: ${JSON.stringify(message)});
^

ParseError: XMLHttpRequest failed: “Unable to connect to the Parse API”
at handleError (C:\Users\Trader\Documents\anhonestboy\moralis-nft-engine-main\node_modules\moralis\lib\node\RESTController.js:440:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Function.initPlugins (C:\Users\Trader\Documents\anhonestboy\moralis-nft-engine-main\node_modules\moralis\lib\node\MoralisWeb3.js:246:40)
at async Function.start (C:\Users\Trader\Documents\anhonestboy\moralis-nft-engine-main\node_modules\moralis\lib\node\Parse.js:120:5) {
code: 100

It looks like an error where the server url and or app id are not the right ones

1 Like

could it be the API key? That part of the video failed for me. I get a 401 error when trying to retrieve the API key from this line: https://deep-index.moralis.io/api-docs/#/storage/uploadFolder.

You need to add your API key here -

You can find your api key in your user settings in admin interface or in web3api page in admin interface

Thank you for the responses. I did plug that API key from my server admin into index.js. It’s much shorter than the key that I see in his video. Anyway, now I’m getting a different error:
#########################################
Welcome to META LEAGUE - Meet the Players
#########################################

Error: Request failed with status code 404
at createError (C:\Users\Trader\Documents\anhonestboy\moralis-nft-engine-main\node_modules\axios\lib\core\createError.js:16:15)
at settle (C:\Users\Trader\Documents\anhonestboy\moralis-nft-engine-main\node_modules\axios\lib\core\settle.js:17:12)
at IncomingMessage.handleStreamEnd (C:\Users\Trader\Documents\anhonestboy\moralis-nft-engine-main\node_modules\axios\lib\adapters\http.js:293:11)

Maybe you got the wrong api key. It should be approximately of same size.

What is the url that returns that 404 error?

I’m not sure where it’s trying to go. I remembered in a different video he said you needed to have an index.html so I created one (it was previously missing). That 404 shows up in Visual Studio Code terminal after the images and json files are created. In the attached screen prints you can see his very long API key and the shorter one in my admin. That’s the part of the video that fails for me - when he goes to that outside URL to retrieve the key

You don’t find there the api key, that is a server info, not an account info.

ok well I’m stuck then. That part of the video, explaining how to retrieve the API key, does not work for me.

you get the api key from this page: https://admin.moralis.io/web3Api

Thank you. That key looked more like his. I assume I was supposed to just click on copy API key and choose default. Unfortunately, I’m still getting the same 404 error after the run.

And nothing ends up on the server. The video shows him going back to his Moralis server and looking at ‘metadata’ on the left. I have no metadata link, so it’s writing the files to my computer but not to the server.

you will have to find out what link/url gives that 404 error, you could try to add some logging

I will try to find that out. Thank you!