Run IPFS daemon
ipfs daemon
Run command
node index.js
It should crash with this error
node:internal/util:76
const str = `${val}`;
^
TypeError: Cannot convert a Symbol value to a string
at toUSVString (node:internal/util:76:15)
at new URLSearchParams (node:internal/url:231:30)
at toUrlSearchParams (file:///Users/goose/workspace/js-ipfs-reproduce-error/node_modules/ipfs-http-client/src/lib/to-url-search-params.js:42:27)
at Object.cat (file:///Users/goose/workspace/js-ipfs-reproduce-error/node_modules/ipfs-http-client/src/cat.js:16:21)
at cat.next (<anonymous>)
at file:///Users/goose/workspace/js-ipfs-reproduce-error/index.js:8:16
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
Node.js v18.14.2