Success upload to ipfs.infura.io and getting hash, but having gateway timeout when want to retrieve

Hi,

I uploaded my content successfully via ipfs.infura.io, but fail to retrieve it back yesterday. May I know the root cause of it? Here is the link

https://ipfs.infura.io/ipfs/QmVzE7kZSs5kAJFq3EVbV9friARwZuuMXmUPyDqKq13czu

I tried to use other ipfs gateway also face the similar issue. It is working all the while, just encounter this error yesterday.

Thanks

Hi @uniqueonegod, and welcome to the Infura community!

It looks like I can access your file via IPFS - see screenshot below - so I’m thinking this may be an issue with your network. Are you using a VPN by chance? Sometimes we’ve seen issues with retrieving data with a slower internet connection or VPN.

Thanks for your response. I’m not using any VPN services, all other uploads are working fine, just randomly few of the contents have this issue. After a while it worked back as normal. But I did encounter this gateway timeout issue again

You can check on this new link as below, I also tried with other ipfs endpoint like from Cloudflare, has the same issue.
https://ipfs.infura.io/ipfs/QmREzwJAUjpXXCb1CL7KxMSJF3auUWvReyQhtUNKcJa51S

Could it be caused by the storage system of the server?

Thanks.

Hi @uniqueonegod - this should be fixed now. Please let us know if you run into it again!

QmUi7NADhp9NEzgf8rVjSjq8XMmXxV4hN9rMoAx1SxEzZ8
QmTedePPcs9Bk3NR1CFpa9hooLpnFvGnEzBszN4wJSSwva
Still, I met " Gateway Timeout " when I get these files from ipfs.

Please, help me.

Hi Christopher,

welcome to the forums!
Are you using authenticated RPC API calls to get the files? You will find you get a longer timeout when authenticated. Can you show how you are retrieving the files?

Warm regards,
Chris | Infura | ConsenSys

Hi, @chris.paterson.

Thank you very much for your reply.

import CID from ‘cids’ ;
import { create as ipfsHttpClient } from ‘ipfs-http-client’ ;

// const client = ipfsHttpClient(‘https://ipfs.infura.io:5001/api/v0’,) ;

export const ipfs_origin = ‘https://ipfs.infura.io/ipfs/’;

// upload flow
let added = await client.add(
file.raw,
{ progress : async (prog) => {
}) ;

[ **********sol.data().ipfs_sol_hash <= added.path ]

// get file flow
let sol_meta = await axios.get(ipfs_origin + sol.data().ipfs_sol_hash ) ;

let asset_url = ‘https://’ + new CID(sol_meta.data.ipfs_asset_hash).toV1().toString(‘base32’) + “.ipfs.infura-ipfs.io”;

This is my customer console.log .

50% of customers in our company can upload and download file successfully using this code.
But and the rest of 50% can’t it.
This is urgent help!

There is a 100Mb limit on the API upload if not authenticated. Can you try to add authentication in your client and see how it goes:

const auth = 'Basic ' + Buffer.from(projectId + ':' + projectSecret).toString('base64')

and add this in your client:

headers: {
    authorization: auth
  }