getting error : HTTPerror: basic auth header is Invalid ,when sending files to ipfs

const projectId = process.env.PROJECTKEY
const projectSecret =process.env.SECRETKEY
const auth = 'Basic' + Buffer.from(projectId + ":" + projectSecret).toString('base64')


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

i removed headers object and then got error- project id required



Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation