Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Not Uploading to IPFS #64

Open
umerarif01 opened this issue Aug 11, 2022 · 5 comments
Open

Data Not Uploading to IPFS #64

umerarif01 opened this issue Aug 11, 2022 · 5 comments

Comments

@umerarif01
Copy link

Data not uploading to IPFS and existing IPFS URLs are returning
Public Gateway Is Not Supported Anymore - Setup a Dedicated Gateway

The data was uploading perfectly to IPFS a few days ago but now its not working
I'm using the exact code of Nader's Marketplace

Please help

@umerarif01
Copy link
Author

I just found out that IPFS infura has deprecated their public gateways : ( . So you can use their dedicated gateway or a service like pinata or Web3Storage

@Sameer-472
Copy link

You can use your own dedicated gateway domain
this article will you.
https://dev.to/sameer472/how-to-upload-files-on-ipfs-infuraio-using-react-56g

@ac12644
Copy link

ac12644 commented Aug 27, 2022

Data not uploading to IPFS and existing IPFS URLs are returning Public Gateway Is Not Supported Anymore - Setup a Dedicated Gateway

The data was uploading perfectly to IPFS a few days ago but now its not working I'm using the exact code of Nader's Marketplace

Please help

Try this one it'll work

  import { create } from 'ipfs-http-client';

  const projectId = process.env.INFURA_IPFS_ID;
  const projectSecret = process.env.INFURA_IPFS_SECRET;

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

  const client = create({
    host: 'ipfs.infura.io',
    port: 5001,
    protocol: 'https',
    headers: {
      authorization: auth,
    },
  });

@Banksy-said-hi
Copy link

Banksy-said-hi commented Nov 17, 2022

Thanks for your solution. It almost resolved my issue. However, there is still a thing to be added to your answer to make it as updated as possible.

Replace "ipfs.infura.io" with "infura-ipfs.io" throughout your script to make it work since "ipfs.infura.io" is not supported anymore. For instance, host: 'ipfs.infura.io', should be turned into host: 'infura-ipfs.io',

@kuntumseroja
Copy link

Thanks for your solution. It almost resolved my issue. However, there is still a thing to be added to your answer to make it as updated as possible.

Replace "ipfs.infura.io" with "infura-ipfs.io" throughout your script to make it work since "ipfs.infura.io" is not supported anymore. For instance, host: 'ipfs.infura.io', should be turned into host: 'infura-ipfs.io',

hi I just try to follow the steps and was stuck in IPFS part
thanks for pointing out , but what about
const url = https://ipfs.infura.io/ipfs/${added.path} at the uploadToIPFS() and OnChange(e) function do we need tp change accordingly ? since the problem (upload IPFS) still remain
please enlight me
Thanks in Advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants