Can't Fetch IPFS images

I’m working on a Dapp and I’m trying to fetch NFT metadata using fetch Rarible API.

fetch(https://api.rarible.org/v0.1/items/byOwner/?owner=ETHEREUM:${walletAddress})

I can see all the metadata in the console.log and also on the frontend. Problem is that all the images that are stored in https://ipfs.infura.io/ipfs/ are not visible but I can see the images stored on other directories and in the console.log I’m getting following errors:

Failed to load resource: net::ERR_NETWORK_IO_SUSPENDED

Uncaught (in promise) TypeError: Failed to fetch

Get https://ipfs.infura.io/ipfs 400(Bad Request)

Now I’m not quite sure if there’s a problem with the IPFS link in fetching the images or something else. Any help would be highly appreciated. Thank You.

Hey Jay,

Thanks for reaching out! The public Infura gateway has been deprecated, please see this post here https://blog.infura.io/post/ipfs-public-api-and-gateway-deprecation. The IPFS cid should work on other public gateways. The blog post I attached also shows you how to set up your own dedicated gateway in your Infura dashboard. Please let me know if you any assistance with this.

Kind regards,
Alex | Infura Support

Thanks Alex, I’ll look into it and get back to you.

Ok so I found out that ipfs images not opening;

Public Gateway Is Not Supported Anymore - Setup a Dedicated Gateway

But problem is I never made any project using Infura, I made projects using Pinata to hold my metadata and when linking to contract I used

ipfs://

Now I’m not quite sure, first, how did

https://ipfs.infura.io

came in front of my image url and second how am I to change any gateaway when I never used Infura at the first place.

If you have anything that might be of any help to me in this situation please let me know. Thank you.

@Jay_zxr can you please share how your code is viewing IPFS CID hashes? It is most likely viewing view the old deprecated infura gateway. A public github repo or more snippets of you code will be very helpful.

Thank you and kind regards,
Alex | Infura Support | Consensys