Request timed out for IPFS

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: "",
  port: "5001",
  protocol: "https"

ipfs.add(this.state.buffer, (error, 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.

Hi @Mano welcome to our community. Can you provide some more information about where your request is being sent from and the full error response you are receiving?