INFURA / infura

Official Public Repository for INFURA
https://infura.io
381 stars 62 forks source link

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

Open lanmo97 opened 3 years ago

lanmo97 commented 3 years ago

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 commented 2 years ago

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