-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Token on Polygon Mumbai testnet shows collection image, but not token image #6725
Comments
Ok. Can you help do a quick check to see if we just save the URL once and not overwrite it? Don’t have to fix it yet. (But that means maybe we just need a single refresh button on this screen) |
yes, right, i tried with with simulating rate limitted error, and able to see same issue, looks like we override existed data with fallback, when we are now able to resolve json |
maybe it better to remove this line? |
@oa-s Hmm.. but no matter what we do/use as fallback, when the |
even if tokenUri() returns a url that works, the request with that url might fail, in this case we replace failure response with fallback data. we actually replace failure case of fetchJsonFromTokenUri JsonFromTokenUri with fallback data. |
But if it eventually succeed, what happens? Am I seeing that it doesn't work on my side because it failed the first time because the A) the result is stored, we never call I thought it is A, and that's why I thought maybe a refresh button to force a refresh would fix it. But it sounds like you are describing B, but B sound like it would fail very often? |
A) the result is stored, we never call tokenUri()again to get the updated URI (they fixed it) and get the JSON we always call tokenUri() when trying to get json for token id, url don't caching |
So if we always call tokenUri() to get the current URL, it should work for me right? |
But if you’d like and it’s a simple, try pushing a PR and I can test against mine state to see if it fixes it? |
yes |
Token: https://mumbai.polygonscan.com/address/0xC9419ebd3DcBdFf2FaD35a8e13AcA24C26E9A38d
Wallet: hweeboon.eth
It could be because the token's
tokenURI(tokenId)
value was invalid when it was downloaded, but it has now been fixedThe text was updated successfully, but these errors were encountered: