Hi, I am getting request timed out errors while using the infura IPFS API. Here’s my code.
const ipfsClient = require("ipfs-http-client");
const ipfs = ipfsClient({
host: "ipfs.infura.io",
port: "5001",
protocol: "https"
});
ipfs.add(this.state.buffer, (error, result) => {
console.log(result);
});
this.state.buffer
has the file details that I want to upload. But the endpoint haven’t worked for me atleast once. Getting timed out errors everytime.
I also found some threads here about the same issue. But the problem still exists. Please look into this. Thanks.