scaffold-eth / se-2-challenges

SpeedRunEthereum challenges (Powered by Scaffold-ETH 2)
https://speedrunethereum.com
MIT License
72 stars 138 forks source link

Wrap api in try catch for chall 0 #150

Closed technophile-04 closed 6 months ago

technophile-04 commented 6 months ago

Description:

I am sure but for some reason, certain people are facing this issue, when they click "Mint NFT" btn :

Error Image from TG chat ![IMG_7449](https://github.com/scaffold-eth/se-2-challenges/assets/80153681/fcf601d4-204f-4ba8-a3a9-d190d7f50d4f)

This doesn't happen to me and everything works fine for me, but a couple of people in the challenge 0 TG group faced this 1, 2

Its mainly caused due infura and ipfs cilent not working properly for certain region / using VPN kind of related discussion on infura

Neverthe less this PR wraps the api in try catch, so that atleast we are able to see cards on frontend ( although without NFT image) but people can move forward and submit the challenge it does not block them