I have uploaded an image to infura, and was able to see the image path under MY PINNED CONTENT.
Now I want to extract the correct image URL by making a usual get request.
async function getImageUrl(object) {
console.log('🛰 Get image url...');
const ipfsResult = ipfs.get(`https://ipfs.infura.io:5001/api/v0/get?arg=${object}`);
console.log(ipfsResult);
// return await axios.get(`https://ipfs.infura.io/ipfs/${ipfsImagePath}`);
}
But get this error