I am getting errors like
invalid ipfs path: invalid path “/ipfs/subdomain-name/ipfs/ipfs_hash”: invalid CID: expected 1 as the cid version number, got: 91
After giving cid = 1, I am getting Invalid CID
User Has Not Pinned This Content.
but I have enabled pin in my settings. Also I can see pinned items in explorer also.
Please help.
Thanks for reaching out. Any chance you can share more lines of your code or a repo we can look at? Could you also please share some IPFS CID examples as well as some IPFS viewing URLs as well? We can attempt reproduce some errors on our end.
SUB-DOMAIN CASE:
When I am replacing the url with the following, I am getting error - SyntaxError: Unexpected token i in JSON at position 0 —> in JSON.parse(body).
Then you can use a gateway, like ipfs.io, to retrieve them. Even better use an Infura dedicated gateway as shown on your project settings, like: https://somename.infura-ipfs.io/ipfs/…
You will find it takes time to add a file to one IPFS node (or service like Infura), and then have it propagate across the network to another node (or public gateway like ipfs.io/ipfs/etc). Note ipfs.io is not managed by Infura but by the global IPFS community. However I am finding that my files, pinned to my Infura/IPFS project, are retrievable from a public gateway like ipfs.io or https://cloudflare-ipfs.com/ipfs/, after a short delay to allow replication.
But most of the time, it is showing 504 Gateway-time-out, whenever I am trying to access. What is the use of IPFS, if I can’t retrieve my file ? I have attached example ipfs urls also. Have you seen any improvement in retrieving after using dedicated gateway?