ipfs / js-ipfs

IPFS implementation in JavaScript
https://js.ipfs.tech
Other
7.43k stars 1.25k forks source link

Node js application crashes with `ipfs-http-client` without error message #4312

Closed amrap030 closed 1 year ago

amrap030 commented 1 year ago

Severity: Critical

Description:

I tried to use ipfs-http-client in node js (version v18.13.0) with typescript but the application crashes without any error message as soon as I call the create function.

Steps to reproduce the error:

The error happens at the create function as follows:

import { create } from "ipfs-http-client";

const ipfs = create({
  host: "localhost",
  port: 5001,
  protocol: "http"
})
whizzzkid commented 1 year ago

js-ipfs is being deprecated in favor of Helia. You can follow the migration plan here https://github.com/ipfs/js-ipfs/issues/4336 and read the migration guide.

Please feel to reopen with any comments before 2023-06-05. We will do a final pass on reopened issues afterward (see https://github.com/ipfs/js-ipfs/issues/4336).