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

Error occur when ipfs.add() #218

Open
goddev1026 opened this issue Nov 22, 2021 · 1 comment
Open

Error occur when ipfs.add() #218

goddev1026 opened this issue Nov 22, 2021 · 1 comment

Comments

@goddev1026
Copy link

Hell, everyone.
I uploaded metadata using ipfs.add, but an error occurred.

// Code

const ipfsClient = require("ipfs-http-client")
const ipfs = ipfsClient({ host: "ipfs.infura.io", port: 5001, apiPath: "/api/v0", protocol: "https" })
const cid = await ipfs.add(Buffer.from(JSON.stringify(tokenObject)));
console.log(cid);

//ERROR

image

@priti104
Copy link

Hell, everyone. I uploaded metadata using ipfs.add, but an error occurred.

// Code

const ipfsClient = require("ipfs-http-client") const ipfs = ipfsClient({ host: "ipfs.infura.io", port: 5001, apiPath: "/api/v0", protocol: "https" }) const cid = await ipfs.add(Buffer.from(JSON.stringify(tokenObject))); console.log(cid);

//ERROR

image

how did you solve it?

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

2 participants