dappuniversity / millow

Real Estate NFT DApp
194 stars 209 forks source link

Error while parsing metadata of the Property #11

Open chaudhariyash10 opened 1 year ago

chaudhariyash10 commented 1 year ago

Cards are not showing because of the error In app.js while getting metadata of the listed property, response.json() gives error.

image
ThisIsPatrick07 commented 2 weeks ago

Same issue here. Please help. Did you find a workaround?

ThisIsPatrick07 commented 2 weeks ago

Oh wait I found it. This error is occurring because you're response isn't a JSON response but rather an image. And that is because you have passed the image IPFS link that dapp university provided rather than the JSON link he provided.

Check your scripts/deploy.js file. In there you are minting an NFT with the wrong link. Copy the link from the master branch code's scripts/deploy.js file and then paste it in your code. Now deploy the contracts onto the hardhat blockchain and then try running it.