Back to All

IPFS gateway timeout in NFT API for the alchemy SDK

I am trying to use the alchemy SDK to retrieve metadata for an NFT collection. I am using getNftsForContract function and receiving a response with all metadata missing. Here is an example response.

{
"contract": {
"address": "0x9A534628B4062E123cE7Ee2222ec20B86e16Ca8F"
},
"tokenId": "3",
"tokenType": "ERC721",
"title": "",
"description": "",
"timeLastUpdated": "2022-08-23T18:24:49.686Z",
"metadataError": "IPFS gateway timed out",
"rawMetadata": {
"metadata": [],
"attributes": []
},
"tokenUri": {
"raw": "https://ipfs.io/ipfs/Qmcob1MaPTXUZt5MztHEgsYhrf7R6G7wV8hpcweL8nEfgU/meka/3",
"gateway": "https://ipfs.io/ipfs/Qmcob1MaPTXUZt5MztHEgsYhrf7R6G7wV8hpcweL8nEfgU/meka/3"
},
"media": []
}

When I use the endpoint though, the meta is available. I'm not sure if it may be me or its the sdk. Any help?

ReadMe