-
Notifications
You must be signed in to change notification settings - Fork 872
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
Comments
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 |
You can use your own dedicated gateway domain |
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,
},
}); |
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, |
hi I just try to follow the steps and was stuck in IPFS part |
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
The text was updated successfully, but these errors were encountered: