OK, if it does not work yet, no problem. I think itâs normal :
if you have made some errors during typing your code, video after video, it is most likely normal the Moralis database does not respond properly yet. Iâm going to give you an advice i found and that worked great for me. It is a bit annoying to do it but this is the only solution.
First, i wanted to know if you work on a local blockchain such as Ganache ?
If you use ganache, like me, and if you are now 100% sure there is no mistake in your website* (folders âfrontendâ + "contracts), then do as following :
1- donât do any change for now in your websiteâs scripts.
2- empty your ganache server (delete any existing server you may have) and re-create a new ganache server for this tutorial.
3- delete your Moralis server and recreate it.
4- when you have a brand new ganache server + a brand new Moralis server, launch your website, connect your wallet and mint an NFT.
It really worked for me. It looks like if you have made some errors in your websitesâ script (and/or your Moralis server), then some database tables (on Moralis) may have been created and populated properly but some other tables didnât (remember your could function mistake). IF you reload with brand new servers, then your tables should all be properly created and populated.
Also, another advice i have readen on this forum :
when you develop such a project, it is highly recommanded to have only 1 server created in ganache for your project. Because if you have several servers, this can create problems. For example, in my ganache, i had 3 servers : âsam_demo_1â, âsam_demo_2â, etc⌠But sometimes, when restarting a ganache server (to refresh new blocks i could not see), i was clicking on a wrong server and then starting to interact with moralis. This kind of error can start to store data on Moralis but ending with an error due to no response from ganache⌠and then we go again for new problems. I have readen that some database tables on Moralis can be âcorruptedâ due to this wrong manipulation. Believe me: one day i was totally sure my code was clean but i could not see a good reaction on Moralis. When i restarted ganache and Moralis from scratch, everything was working fine for me
If it does not work, then i think you have a problem in your websiteâs script. Then you should post your main.js + contracts script here. I hope a Moralis moderator can take a look on it. I will stay online to keep up with you.
Success ! (and Happy new year, by the way !!)