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

ipfs.add() return net::ERR_CONNECTION_TIMED_OUT #206

Open
lanmo97 opened this issue Dec 2, 2020 · 1 comment
Open

ipfs.add() return net::ERR_CONNECTION_TIMED_OUT #206

lanmo97 opened this issue Dec 2, 2020 · 1 comment

Comments

@lanmo97
Copy link

lanmo97 commented Dec 2, 2020

when I use ipfs.add() to upload video, it return net::ERR_CONNECTION_TIMED_OUT at Chrome console.

this is my code:

//Declare IPFS
const ipfsClient = require('ipfs-http-client')
const ipfs = ipfsClient({ host: 'ipfs.infura.io', port: 5001, protocol: 'https' })

// Upload video
ipfs.add(this.state.buffer, (error, result) => {
      console.log("IPFS result: ", result)
      if(error){
        console.log("error: ", error)
        return
      }
})

this the Error in Chrome console:
image

Thank you much very much.

P.S.: when I use the Infura and IPFS by this way, do I need to install and configure Infura and IPFS at my computer?

@spartan2408
Copy link

@lanmo97 hey any update on this issue, seem to facing the same error

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