IPFS link invalid for NFTs

The wallet 0x7fbdc3efa52e7ba4e85f733c4a90bbd29763bfb5 owns 1 NFT -

calling the moralis API to get this wallet’s NFTs with this request -

curl -X 'GET' \
  'https://deep-index.moralis.io/api/v2/0x7fbdc3efa52e7ba4e85f733c4a90bbd29763bfb5/nft?chain=polygon&format=decimal' \
  -H 'accept: application/json' \
  -H 'X-API-Key: ###'

and the response for the above API call is -

  "total": 1,
  "page": 0,
  "page_size": 500,
  "cursor": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ3aGVyZSI6eyJvd25lcl9vZiI6IjB4N2ZiZGMzZWZhNTJlN2JhNGU4NWY3MzNjNGE5MGJiZDI5NzYzYmZiNSJ9LCJsaW1pdCI6NTAwLCJvZmZzZXQiOjAsIm9yZGVyIjpbWyJ0cmFuc2Zlcl9pbmRleCIsIkRFU0MiXV0sInBhZ2UiOjEsImtleSI6IjI4OTM0MjE1LjAuMC4wIiwidG90YWwiOjEsImlhdCI6MTY1Mzg3NTEzM30.m-zNeKfk5cpW_Ffk5mLyrqGSoliIWfi9Xy6ahjw3-yg",
  "result": [
      "token_address": "0x8c0d8685afeaf558f271fd78e75e647f6357869b",
      "token_id": "35342334",
      "amount": "1",
      "owner_of": "0x7fbdc3efa52e7ba4e85f733c4a90bbd29763bfb5",
      "token_hash": "2b31401c310029351a886b7ac194f12c",
      "block_number_minted": "28934215",
      "block_number": "28934215",
      "contract_type": "ERC721",
      "name": "NFTsApp",
      "symbol": "NFTsApp9",
      "token_uri": "https://ipfs.moralis.io:2053/ipfs/bafkreihrtj74tctepvh2reascgmdmx5ubvu4g2xh54hgfagyx4ulc2pr2e",
      "metadata": null,
      "synced_at": null,
      "last_token_uri_sync": "2022-05-30T01:34:53.551Z",
      "last_metadata_sync": null
  "status": "SYNCED"

The token_uri metadata URL over here is -

This URL is invalid instead of pointing to the JSON file. This worked fine up until a few days ago and now this bug is causing all NFTs minted recently to have an incorrect ifps hash.

Any recommendations on how to fix this?

Looks like that gateway is having issues, usually using https://gateway.moralisipfs.com/ipfs/ will work but that is having the same issue.

You can use https://ipfs.io/ipfs/ in the meantime.

1 Like

Hi Glad,

Thanks for getting back on this quickly.
Do you have an estimate by when “https://ipfs.moralis.io:2053/ipfs/bafkreihrtj74tctepvh2reascgmdmx5ubvu4g2xh54hgfagyx4ulc2pr2e” will start working?
I’ll need to push out an app update to change the URLs so i’d prefer if we can support the existing URLs with the old gateway.

we don’t support those urls that start with /baf now, you can use a different IPFS gateway for these types of urls

1 Like