airswap / airswap-nft-marketplace

Reference AirSwap Marketplace Client
12 stars 3 forks source link

Show error toast when getCollectionTokenInfo returns error #170

Closed ghost closed 11 months ago

ghost commented 11 months ago

For some tokens getCollectionTokenInfo does not work. This could happen for a variety of reasons but the main one I'm running into is 403 forbidden from cloudflare.

For example BoredApeYachtClub 0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d on mainnet has this issue.

This is not something we can fix. I think it's cloudflare firewall not allowing api calls from third parties.

But at least we should show the user that the nft meta data could not be fetched.