Hello everyone,
I’m building an app that use IPFS and I keep getting error: status 429
when I request relatively big amount of hash (~ 50+) is it the expected behaviour? I’m getting “general users” objects first that have an IPFS link containing a base64 image (mediaData)
I’m using ipfs-mini and here is the code:
const users = [user1,user2,user3]
// get tokenIds IPFS
users.forEach(async (elem) => {
const uri = await dispatch('score/getTokenUri', { user: elem}, { root: true })
// get IPFS datas
const generalData = JSON.parse(await dispatch('ipfs/getData', { hash: uri.substring(28), type: 'object' }, { root: true }))
const mediaData = await dispatch('ipfs/getData', { hash: generalData.file.substring(28), type: 'media' }, { root: true })
tokens.push({
generalUri: uri,
tokenId: parseInt(elem, 16),
generalData
})
})
Thanks a lot!